zookeeper集群启动时报错
Cannot open channel to 3 at election address zk03/192.168.128.103:3888
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:368)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:341)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:449)
at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:430)
at java.lang.Thread.run(Thread.java:744)
解决:
【big|zookeeper集群启动时报Connection refused错误】每个当前节点要把自己的IP地址设置为0.0.0.0
推荐阅读
- SQL|SQL基本功(五)--函数、谓词、CASE表达式
- python|深度盘点(一文详解数据分析中100个常用指标和术语)
- 专注于最有价值的事情!——亚马逊云科技首席科学家工作心得分享
- Data|单链表的增删查改
- C|生成一个整数集合的所有子集
- 身兼数职的Amazon DocumentDB,还有什么不为人知的功能()
- Big|Anaconda 换源
- Data|拜占庭将军问题中的签名算法SM,以及有关证明。
- 大数据|HBase导出CSV格式数据的方法