Zookeeper启动失败(CentOS 7 防火墙)

zookeeper配置
1.zoo.cfg的server.id=host:2888:3888
2.zoo.cfg的dataDir
3.在dataDir中创建myid文件,写入当前节点的id

正确配置下zookeeper启动失败,ssh免密登录也已配置,查看zookeeper.out

java.net.NoRouteToHostException: No route to host

可能是防火墙没有关。
CentOS 7 关闭防火墙命令:

systemctl start firewalld    #启动
systemctl stop firewalld    #关闭
systemctl status firewalld    #查看状态
systemctl disable firewalld    #停用(开机不启动)
systemctl enable firewalld    #启用(开机自启动)
    原文作者:Wish大人
    原文地址: https://segmentfault.com/a/1190000018946067
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞