美文网首页
ES 新增节点启动报错 No route to host

ES 新增节点启动报错 No route to host

作者: 一语漂泊何处寻 | 来源:发表于2021-03-10 10:47 被阅读0次
[2021-03-10T10:25:01,932][INFO ][o.e.h.AbstractHttpServerTransport] [node-188] publish_address {172.17.42.1:9200}, bound_addresses {0.0.0.0:9200}
...
[2021-03-10T10:17:07,285][INFO ][o.e.c.c.JoinHelper       ] [node-188] failed to join {node-170}{mDUy_Fr0QUaUbK_hVpKbEw}{WrAgGr20QGu-KdmyK6Eprw}{172.26.152.29}{172.26.152.29:9300}{dilm}{ml.machine_memory=16374632448, ml.max_open_jobs=20, xpack.installed=true} with JoinRequest{sourceNode={node-188}{rSiLWoYKT8aOFNBuUFM89w}{VBVZ_PdDQhqqvSoWUoey_A}{172.17.42.1}{172.17.42.1:9300}{dilm}{ml.machine_memory=16862167040, xpack.installed=true, ml.max_open_jobs=20}, optionalJoin=Optional[Join{term=16, lastAcceptedTerm=0, lastAcceptedVersion=0, sourceNode={node-188}{rSiLWoYKT8aOFNBuUFM89w}{VBVZ_PdDQhqqvSoWUoey_A}{172.17.42.1}{172.17.42.1:9300}{dilm}{ml.machine_memory=16862167040, xpack.installed=true, ml.max_open_jobs=20}, targetNode={node-170}{mDUy_Fr0QUaUbK_hVpKbEw}{WrAgGr20QGu-KdmyK6Eprw}{172.26.152.29}{172.26.152.29:9300}{dilm}{ml.machine_memory=16374632448, ml.max_open_jobs=20, xpack.installed=true}}]}
org.elasticsearch.transport.RemoteTransportException: [node-170][172.26.152.29:9300][internal:cluster/coordination/join]
Caused by: org.elasticsearch.transport.ConnectTransportException: [node-188][172.17.42.1:9300] connect_exception
    at org.elasticsearch.transport.TcpTransport$ChannelsConnectedListener.onFailure(TcpTransport.java:989) ~[elasticsearch-7.6.2.jar:7.6.2]
    at org.elasticsearch.action.ActionListener.lambda$toBiConsumer$3(ActionListener.java:162) ~[elasticsearch-7.6.2.jar:7.6.2]
    at org.elasticsearch.common.concurrent.CompletableContext.lambda$addListener$0(CompletableContext.java:42) ~[elasticsearch-core-7.6.2.jar:7.6.2]
    at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859) ~[?:?]
    at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837) ~[?:?]
    at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?]
    at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2159) ~[?:?]
    at org.elasticsearch.common.concurrent.CompletableContext.completeExceptionally(CompletableContext.java:57) ~[elasticsearch-core-7.6.2.jar:7.6.2]
    at org.elasticsearch.transport.netty4.Netty4TcpChannel.lambda$addListener$0(Netty4TcpChannel.java:68) ~[transport-netty4-client-7.6.2.jar:7.6.2]
    at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:577) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:570) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:549) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:490) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:615) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:608) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117) ~[netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321) ~[netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337) ~[netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:688) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:600) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:554) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514) [netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050) [netty-common-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.43.Final.jar:4.1.43.Final]
    at java.lang.Thread.run(Thread.java:830) [?:?]
Caused by: java.io.IOException: No route to host: 172.17.42.1/172.17.42.1:9300
Caused by: java.io.IOException: No route to host
    at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
    at sun.nio.ch.Net.pollConnectNow(Net.java:579) ~[?:?]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:820) ~[?:?]
    at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330) ~[netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.43.Final.jar:4.1.43.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:688) ~[?:?]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:600) ~[?:?]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:554) ~[?:?]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514) ~[?:?]
    at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050) ~[?:?]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[?:?]
    at java.lang.Thread.run(Thread.java:830) ~[?:?]

解决方法:

配置文件elasticsearch.yml中添加

#指定publish_host的ip (publish_host用于与群集其他节点通信)
network.publish_host: 本机IP

相关文章

网友评论

      本文标题:ES 新增节点启动报错 No route to host

      本文链接:https://www.haomeiwen.com/subject/lcqwqltx.html