踩坑zookeeper初體驗


異常:

 1 java.net.ConnectException: Connection timed out: no further information
 2     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
 3     at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
 4     at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
 5     at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
 6 2020-06-05 10:44:12,901 [localhost-startStop-1-SendThread(192.168.202.128:2181)] [org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during shutdown input
 7 java.nio.channels.ClosedChannelException
 8     at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:780)
 9     at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:399)
10     at org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:200)
11     at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1246)
12     at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170)
13 2020-06-05 10:44:12,902 [localhost-startStop-1-SendThread(192.168.202.128:2181)] [org.apache.zookeeper.ClientCnxnSocketNIO]-[DEBUG] Ignoring exception during shutdown output
14 java.nio.channels.ClosedChannelException
15     at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:797)
16     at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:407)
17     at org.apache.zookeeper.ClientCnxnSocketNIO.cleanup(ClientCnxnSocketNIO.java:207)
18     at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1246)
19     at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1170)

解決:關閉服務端防火牆,service iptables stop這條命令無效,要使用:systemctl stop firewalld.service


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM