zkServer.sh status查看状态是报Error contacting service. It is probably not running.

xiaoxiao2021-02-28  70

1,当我启动zookeeper集群的时候使用jps可以看到所有的机器上都出现QuorumPeerMain,但当我使用zkServer.sh status查看状态是报Error contacting service. It is probably not running.解决方法:

使用netstat -ntp| grep 2181可以看到如下:

[root@shizhan bin]# netstat -anp|grep 2181 tcp 0 0 :::2181 :::* LISTEN 3359/java

可知端口已经被占用了,把进程kill掉

[root@shizhan bin]# netstat -anp|grep 2181 [root@shizhan bin]# zkServer.sh start JMX enabled by default Using config: /home/soft/zookeeper-3.4.5/bin/../conf/zoo.cfg Starting zookeeper ... STARTED [root@shizhan bin]# zkServer.sh status  JMX enabled by default Using config: /home/soft/zookeeper-3.4.5/bin/../conf/zoo.cfg Mode: follower

转载请注明原文地址: https://www.6miu.com/read-2500219.html

最新回复(0)