好的想法是十分钱一打,真正无价的是能够实现这些想法的人。

es握手失败

Elasticsearch | 作者 ridethewind | 发布于2019年01月22日 | 阅读数:5156


[management][T#2]][o.e.c.NodeConnectionsService]  failed to connect to node (tried [103] times)
org.elasticsearch.transport.ConnectTransportException: handshake failed. unexpected remote node
at org.elasticsearch.transport.TransportService.lambda$connectToNode$3(TransportService.java:331) ~[elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.transport.TcpTransport.connectToNode(TcpTransport.java:514) ~[elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:327) ~[elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.transport.TransportService.connectToNode(TransportService.java:314) ~[elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.cluster.NodeConnectionsService.validateAndConnectIfNeeded(NodeConnectionsService.java:154) [elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.cluster.NodeConnectionsService$1.doRun(NodeConnectionsService.java:107) [elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:637) [elasticsearch-6.1.3.jar:6.1.3]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.1.3.jar:6.1.3]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]

已邀请:

rochy - rochy_he

赞同来自:

请贴一下你集群的 network.host 相关配置

rochy - rochy_he

赞同来自:

试一下下面的配置
 esmaster
network.host: 192.168.0.1
transport.host: 192.168.0.1

esnode
network.host: 192.168.0.2
transport.host: 192.168.0.2
 
discovery.zen.ping.unicast.hosts: ["192.168.0.1"]

要回复问题请先登录注册