2016-06-23 54 views
2

我有在elasticsearch.yml以下配置 -的NoRouteToHostException:沒有到主機的路由錯誤而羣集上運行Elasticsearch

服務器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 

我收到以下錯誤,同時在集羣h的速度行駛ES兩個節點(RHEL系統),

[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 
+0

你可以ping另一臺主機,反之亦然? – Val

+0

是的,我曾試過,我能ping通。 –

回答

0

我不得不在兩臺機器上禁用防火牆,之後它工作正常。

相關問題