如何在Elasticsearch中获得从节点数据到主节点的连接?

洛基

我通过谷歌搜索检查了互联网上的所有文档。我试图绑定节点数据和主节点。但是我意识到我的日志中有一个错误。

错误:如果我检查“ 192.168.5.84”日志;出现以下错误。

[node1]在ping期间发现的主节点不足(找到[[]],但需要[1])

2017-08-16 13:37:38 Commons Daemon procrun stdout initialized
[2017-08-16T13:37:43,253][INFO ][o.e.n.Node               ] [node1] initializing ...
[2017-08-16T13:37:43,346][INFO ][o.e.e.NodeEnvironment    ] [node1] using [1] data paths, mounts [[(C:)]], net usable_space [10.7gb], net total_space [39.6gb], spins? [unknown], types [NTFS]
[2017-08-16T13:37:43,346][INFO ][o.e.e.NodeEnvironment    ] [node1] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-08-16T13:37:43,472][INFO ][o.e.n.Node               ] [node1] node name [node1], node ID [81pArkMqSUuBVnKwny1Blw]
[2017-08-16T13:37:43,472][INFO ][o.e.n.Node               ] [node1] version[5.4.1], pid[7632], build[2cfe0df/2017-05-29T16:05:51.443Z], OS[Windows Server 2012 R2/6.3/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-08-16T13:37:43,472][INFO ][o.e.n.Node               ] [node1] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+DisableExplicitGC, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Delasticsearch, -Des.path.home=C:\elk\elasticsearch, -Des.default.path.logs=C:\elk\elasticsearch\logs, -Des.default.path.data=C:\elk\elasticsearch\data, -Des.default.path.conf=C:\elk\elasticsearch\config, exit, -Xms2048m, -Xmx2048m, -Xss1024k]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [aggs-matrix-stats]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [ingest-common]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [lang-expression]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [lang-groovy]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [lang-mustache]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [lang-painless]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [percolator]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [reindex]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [transport-netty3]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] loaded module [transport-netty4]
[2017-08-16T13:37:45,706][INFO ][o.e.p.PluginsService     ] [node1] no plugins loaded
[2017-08-16T13:37:50,987][INFO ][o.e.d.DiscoveryModule    ] [node1] using discovery type [zen]
[2017-08-16T13:37:52,347][INFO ][o.e.n.Node               ] [node1] initialized
[2017-08-16T13:37:52,347][INFO ][o.e.n.Node               ] [node1] starting ...
[2017-08-16T13:37:53,190][INFO ][o.e.t.TransportService   ] [node1] publish_address {192.168.5.84:9300}, bound_addresses {192.168.5.84:9300}
[2017-08-16T13:37:53,206][INFO ][o.e.b.BootstrapChecks    ] [node1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-08-16T13:37:56,362][WARN ][o.e.d.z.ZenDiscovery     ] [node1] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-08-16T13:37:59,378][WARN ][o.e.d.z.ZenDiscovery     ] [node1] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-08-16T13:38:02,394][WARN ][o.e.d.z.ZenDiscovery     ] [node1] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again

我的主人:(它的工作非常完美!)10.180.11.82

cluster.name: elasticsearch         
node.name: "lmaster"             
node.master: true              
node.data: true


network.host: 10.180.11.82
http.port: 333
#network.bind_host: ["192.168.5.84"]
#discovery.zen.ping.multicast.enabled: true
discovery.zen.ping.unicast.hosts: ["10.180.11.82:333"]

我的数据节点:(上面发生错误)192.168.5.84

network.host: 192.168.5.84
http.port: 333
cluster.name: elasticsearch    
node.name: "node1"  
node.master: false
node.data: true               
                        
#discovery.zen.ping.unicast.hosts: ["10.180.11.82:333"]   
#network.bind_host: 10.180.11.82
discovery.zen.minimum_master_nodes: 1

discovery.zen.ping.unicast.hosts: ["10.180.11.82:333"]

安德烈·斯特凡

您的设置无处不在。首先从简单的内容开始,例如以下内容,确保它可以正常运行,然后,如果对使用的端口/ IP不满意,则开始进行更改:

节点10.180.11.82

cluster.name: elasticsearch         
node.name: "lmaster"             
node.master: true              
node.data: true

network.host: 10.180.11.82
discovery.zen.ping.unicast.hosts: ["192.168.5.84:9300"]
discovery.zen.minimum_master_nodes: 1

节点192.168.5.84

cluster.name: elasticsearch    
node.name: "node1"  
node.master: false
node.data: true               

network.host: 192.168.5.84
discovery.zen.ping.unicast.hosts: ["10.180.11.82:9300"]
discovery.zen.minimum_master_nodes: 1

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在GOJS的模板中获取节点数据?

如何在 ESQL 中访问 JSON 子节点数据?

如何在不停机的情况下更改 elasticsearch 集群中现有节点的节点类型(数据、主节点或客户端)?

连接XML节点数据

如何在kubernetes中重启主节点

在 elasticsearch 中定义主节点

如何获得场景中不可见的SKSpriteNodes的节点数?

如何在Firebase数据库中更新子节点数据?

德鲁伊:如何在内存中缓存所有历史节点数据

如何在SpriteKit中检测冲突中涉及的节点数

如何获得以下所示节点的子节点数?

在NetworkX中,如何获取包含节点数据的DFS树?

SOAPUI:如何在JSON响应中查找节点数

如何在D3.js强制布局图中创建到主节点的附属节点

如何确定Elasticsearch合格主节点的数量?

Hyperledger Sawtooth Validator 节点如何在 Sawtooth 网络中拥有“大于最大连接的对等点数”?

节点启动过程中如何在主等待?

无法让kubernetes节点连接到Vagrant / Ansible中的主节点

如何在 Firebase 数据库的主节点内创建一个节点?

Sprite Kit中的节点数据

我无法从xml的xsl编码中获得子循环中的根节点数据

如何获取Firebase中父节点的嵌套节点数

如何在节点Firebase中获得唯一的随机产品?

如何在TVirtualStringTree中获得许多显示的节点?

如何在Virtual TreeView中获得可见的根节点?

如何在JavaFX中获得节点的绝对旋转

如何正确计算堆栈中的节点数?

树状图中的连接节点数

如何在 Elasticsearch 中添加用于故障转移的节点