QuorumCnxManager@584] - Cannot open channel to 2 at election

1、安装zookeeper时一直提示以下错误,无奈把防火墙关掉之后还是提示,最终发现,防火墙没关闭成功

WARN  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:21810:Learner@237] - Unexpected exception, tries=1, connecting to slave2/172.2.4.161:28880
java.net.ConnectException: 拒绝连接 (Connection refused)


 WARN  [WorkerSender[myid=4]:QuorumCnxManager@584] - Cannot open channel to 2 at election address slave1/172.2.1.175:38880
java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable)

2、先查看防火墙是否已关闭:

[root@slave2 bin]# firewall-cmd --state
not running
--永久关闭防火墙
systemctl disable firewalld.service

3、centos7,关闭防火墙

systemctl stop firewalld.service

成功了

[root@slave1 bin]# ./zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /usr/hadoop/zookeeper-3.4.12/bin/../conf/zoo.cfg
Mode: follower

期间测试过修改zookeeper的通信端口,无奈只是防火墙问题

留次文章做个警醒

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值