zoukankan      html  css  js  c++  java
  • 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
         

      •  
      • 防火墙关闭了吗
        最后只是一台机器的防火墙未关闭
  • 相关阅读:
    自己改了个{svn服务器端绿色版}
    Android去掉顶部的阴影
    SqliteOpenHelper的onUpgrade()死活不运行的解法
    前端模拟发送数据/调试的好工具:Chrome下的PostmanREST Client
    mouseenter & mouseleave VS mouseover & mouseout
    Android WindowManager$BadTokenException异常应对案例
    Eclipse快捷键大全(转载)
    360桌面JSAPI一个诡异的bug:客户端与网页通过js通信
    《你在哪》1.34强势发布,新增“图片墙”
    经过一个月的奋斗,我的第一个Android作品《麦芒》诞生了
  • 原文地址:https://www.cnblogs.com/wjy980402/p/15244267.html
Copyright © 2011-2022 走看看