寅当当

 

3台服务器有两台Zookeeper正常启动,但是有一台一直显示报错,日志报错Notification timeout

查看日志,显示报错

2021-09-08 18:15:25,573 [myid:3] - INFO  [node03/192.168.100.211:3888:QuorumCnxManager$Listener@936] - Received connection request from /192.168.100.201:51698
2021-09-08 18:15:25,575 [myid:3] - WARN  [QuorumConnectionThread-[myid=3]-4:QuorumCnxManager@381] - Cannot open channel to 1 at election address /192.168.100.201:3888
java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:373)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:436)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
2021-09-08 18:15:25,974 [myid:3] - INFO  [node03/192.168.100.211:3888:QuorumCnxManager$Listener@936] - Received connection request from /192.168.100.201:51702
2021-09-08 18:15:25,976 [myid:3] - WARN  [QuorumConnectionThread-[myid=3]-5:QuorumCnxManager@381] - Cannot open channel to 1 at election address /192.168.100.201:3888
java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:373)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:436)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
2021-09-08 18:15:26,775 [myid:3] - INFO  [node03/192.168.100.211:3888:QuorumCnxManager$Listener@936] - Received connection request from /192.168.100.201:51706
2021-09-08 18:15:26,776 [myid:3] - WARN  [QuorumConnectionThread-[myid=3]-5:QuorumCnxManager@381] - Cannot open channel to 1 at election address /192.168.100.201:3888
java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager.initiateConnection(QuorumCnxManager.java:373)
        at org.apache.zookeeper.server.quorum.QuorumCnxManager$QuorumConnectionReqThread.run(QuorumCnxManager.java:436)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
2021-09-08 18:15:28,376 [myid:3] - INFO  [node03/192.168.100.211:3888:QuorumCnxManager$Listener@936] - Received connection request from /192.168.100.201:51710
2021-09-08 18:15:28,379 [myid:3] - WARN  [QuorumConnectionThread-[myid=3]-5:QuorumCnxManager@381] - Cannot open channel to 1 at election address /192.168.100.201:3888
java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable)

 

/192.168.100.201:3888
java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable)
at java.net.PlainSocketImpl.socketConnect(Native Method)

host填错了

    • /etc/hosts有没有写错IP
       

    •  
    • 防火墙关闭了吗
      最后只是一台机器的防火墙未关闭

 

posted on 2021-09-08 19:27  寅当当  阅读(687)  评论(0编辑  收藏  举报

导航