gpt4 book ai didi

elasticsearch - NoRouteToHostException:在集群上运行Elasticsearch时没有路由到主机错误

转载 作者:行者123 更新时间:2023-12-03 00:14:20 24 4
gpt4 key购买 nike

我在elasticsearch.yml中具有以下配置-

服务器1:-

cluster.name: rhel
node.name: "node-1"
network.host: 172.23.83.12
discovery.zen.ping.unicast.hosts: ["172.23.96.25"]
node.data : true
node.master : true
discovery.zen.ping.multicast.enabled: false

服务器2:-
cluster.name: rhel
node.name: "node-2"
network.host: 172.23.96.25
discovery.zen.ping.unicast.hosts: ["172.23.83.12"]
node.data : true
node.master : true
discovery.zen.ping.multicast.enabled: false

在具有两个节点的群集(RHEL系统)上运行ES时,出现以下错误,
[2016-06-23 12:13:43,031][WARN ][transport.netty          ] [node-1] exception caught on transport layer [[id: 0xb46e3320]], closing connection
java.net.NoRouteToHostException: No route to host
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152)
at org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
^C[2016-06-23 12:13:43,494][INFO ][node ] [node-1] stopping ...
[2016-06-23 12:13:43,507][INFO ][node ] [node-1] stopped
[2016-06-23 12:13:43,507][INFO ][node ] [node-1] closing ...
[2016-06-23 12:13:43,514][INFO ][node ] [node-1] closed

最佳答案

在这之后,我不得不在两台计算机上都禁用了防火墙,然后它仍然可以正常工作。

关于elasticsearch - NoRouteToHostException:在集群上运行Elasticsearch时没有路由到主机错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37984269/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com