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

4次阅读

共计 357 个字符,预计需要花费 1 分钟才能阅读完成。

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    #启用(开机自启动)

正文完
 0