坑一:
Cannot open channel to at election address slave1/192.168.127.132:
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 临时关闭 vim /etc/selinux/config 改为disabled
三: 确保防火墙关闭或者端口在防火墙中配置好:
centos7 :
systemctl stop firewalld.service