Zookeeper集群模式正常启动但在zkSever.sh status 显示Error contacting service. It is probably not running.
Zookeeper集群模式发生问题
Zookeeper集群模式正常启动但在zkSever.sh status 显示Error contacting service. It is probably not running.
网上好像没找到有相似问题的就写了这篇东西,希望给各位一个参考
2333
排除错误的思路
1.在conf/zoo.cfg中注释掉配置的集群地址信息后restart
2.用zkSever.sh status发现能运行在standlone模式下证明zookeeper自身没问题,那就是集群地址信息有问题
3.将主机名修改为主机对应ip地址,后问题解决(hosts中医添加主机名与主机IP地址的映射但是终会无法启动,暂时无法找到问题原因也不找了)