zookeeper 集群配置采坑 Connection refused WARN [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@584] - Cannot open channel to 3 at election address slave2/192.168.127.133:3888


坑一:

 

Cannot open channel to 2 at election address slave1/192.168.127.132:3888
java.net.ConnectException: Connection refused (Connection refused)

 

如上情况:132 ip 3888 端口没开。通常是zookeeper服务没起

端口检查:

   netstat -anp | grep 3888

正常开启如下:

 zookeeper 集群不像hadoop集群,在master上启动后其他的slave也启动。必须手动或者其他脚本启动。启动后。/usr/local/zookeeper/bin目录下会生成zookeeper.out文件

坑二:

   确保:集群中的selinux 关闭

   检查:

getenforce:
disabled : 已经关闭


setenforce 0 临时关闭


vim /etc/selinux/config

改为disabled

 

  三: 确保防火墙关闭或者端口在防火墙中配置好:

centos7 :

 

systemctl stop firewalld.service

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM