Error contacting service. It is probably not running.
查看zookeeper状态出错
# ./zkServer.sh status
爆出错误
ZooKeeper JMX enabled by default Using config: /usr/local/zookeeper/zookeeper-3.4.10/bin/../conf/zoo.cfg Error contacting service. It is probably not running.
查看zookeeper.out日志
貌似是端口没打开,到第二台服务器去打开3888
firewall-cmd --zone=public --add-port=3888/tcp --permanent firewall-cmd --reload
还是不行
查了一下 把 原来的文件改为 0.0.0.0 ,还有其他两个服务器的zookeeper
然后发现 是 2888 端口没开,开了之后就好了