博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[异常笔记] zookeeper集群启动异常: Cannot open channel to 2 at election address ……
阅读量:5858 次
发布时间:2019-06-19

本文共 3308 字,大约阅读时间需要 11 分钟。

4-11 13:22:04,594 [myid:1] - WARN  [WorkerSender[myid=1]:QuorumCnxManager@584] - Cannot open channel to 2 at election address cdh03/192.168.5.148:3888java.net.ConnectException: Connection refused (Connection refused)    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.connectOne(QuorumCnxManager.java:558)    at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:534)    at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:454)    at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:435)    at java.lang.Thread.run(Thread.java:748)                4-11 13:22:04,597 [myid:1] - INFO  [WorkerSender[myid=1]:QuorumPeer$QuorumServer@184] - Resolved hostname: cdh03 to address: cdh03/192.168.5.148                4-11 13:22:04,598 [myid:1] - WARN  [WorkerSender[myid=1]:QuorumCnxManager@584] - Cannot open channel to 3 at election address cdh04/192.168.5.149:3888java.net.ConnectException: Connection refused (Connection refused)    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.connectOne(QuorumCnxManager.java:558)    at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:534)    at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:454)    at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:435)    at java.lang.Thread.run(Thread.java:748)                4-11 13:22:04,599 [myid:1] - INFO  [WorkerSender[myid=1]:QuorumPeer$QuorumServer@184] - Resolved hostname: cdh04 to address: cdh04/192.168.5.149                4-11 13:22:04,807 [myid:1] - WARN  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@584] - Cannot open channel to 2 at election address cdh03/192.168.5.148:3888java.net.ConnectException: Connection refused (Connection refused)

 

解决方法:本机用节点 用  0.0.0.0  IP代替主机名

 

[hadoop@cdh02 ~]$ cat  /opt/software/zookeeper-3.4.13/conf/zoo.cfgserver.1=0.0.0.0:2888:3888server.2=cdh03:2888:3888server.3=cdh04:2888:3888[hadoop@cdh03 ~]$ cat  /opt/software/zookeeper-3.4.13/conf/zoo.cfgserver.1=cdh02:2888:3888server.2=0.0.0.0:2888:3888server.3=cdh04:2888:3888[hadoop@cdh04 ~]$ cat  /opt/software/zookeeper-3.4.13/conf/zoo.cfgserver.1=cdh02:2888:3888server.2=cdh03:2888:3888server.3=0.0.0.0:2888:3888

 

转载于:https://www.cnblogs.com/tocode/p/10693715.html

你可能感兴趣的文章
.Net开源工作流Roadflow的使用与集成
查看>>
WPF 4 目录树型显示
查看>>
WP7 Emulator 截屏
查看>>
解决方案是什么
查看>>
[LintCode] Move Zeroes 移动零
查看>>
WPF 动态模拟CPU 使用率曲线图
查看>>
16.1。iperf3 - 执行网络吞吐量测试
查看>>
脊柱外科病人资料管理系统的界面设计分析(2)--JOA评分记录的实现
查看>>
24.5. Routing Information Protocol (RIP) Commands
查看>>
tmux/screen里面如何用鼠标滚轮来卷动窗口内容
查看>>
根据不同需求跳转不同Activity的另外一种写法
查看>>
服务器带宽问题记录
查看>>
【案例学习】美国大都会人寿保险公司的 Docker EE 实践
查看>>
【jQuery】清空表单内容
查看>>
网站设计开发维护基本流程
查看>>
2.4. PDF
查看>>
关于Web页中的色彩反转遇到一点问题
查看>>
【spring boot logback】spring boot中logback日志乱码问题
查看>>
[Android]使用Gradle提交自己开源Android库到Maven中心库
查看>>
【★】假如人类使用16进制
查看>>