java.net.NoRouteToHostException: No route to host

Open source software supply chain lighting plan, waiting for you>>>

Today, after re installing the server system and re deploying the ES cluster on the two servers, we found that the ES started with an error:

[2015-06-1610:33:33,455][WARN][transport.netty][ElasticSearch_01]exceptioncaughtontransportlayer[[id:0x10560167]],closingconnection
java.net.NoRouteToHostException:Noroutetohost
atsun.nio.ch.SocketChannelImpl.checkConnect(NativeMethod)
atsun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
atorg.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152)
atorg.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
atorg.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
atorg.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
atorg.elasticsearch.common.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
atorg.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
atorg.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:745)

After investigation, it is the firewall that restricts the 9200 and 9300 ports. Just turn off the firewall or open the specified port.
the firewall is the only one that restricts the 9200 and 9300 ports

Similar Posts: