问题
ZOOKEEPER开启无异常

但是查看状态显示Error contacting service. It is probably not running.

解决方法
查看防火墙状态,如果是运行中,则关闭防火墙,重启zookeeper即可恢复正常
查看防火墙状态:systemctl status firewalld
关闭防火墙:systemctl stop firewalld
永久关闭防火墙:systemctl disable firewalld


切换到zookeeper的bin目录下
开启zookeeper:zkServer.sh start
查看zookeeper状态:zkServer.sh status

本文讲述了在ZOOKEEPER遇到Errorcontactingservice错误时,通过检查防火墙状态、关闭并重启防火墙,以及在bin目录下操作zkServer.sh命令来解决问题的步骤。
704





