Zookeeper: It is probably not running

扶醉桌前 提交于 2019-12-01 04:10:48
Nipun Talukdar

Most probably Zookeeper server exited. If we are running it on a Linux box, use the linux commands. Some of them:

ps -ef | grep -i zookeeper
jps

etc.

Also, try running it in foreground

zkServer.sh start-foreground

In My case the issue was $PATH issue... You will get what was the issue by running zookeeper in foreground

zkServer.sh start-foreground

I encountered same problem,too. In my case problem is about zookeeper locations configuration is not same for each node so zookeeper can not provide Quorum and mentioned nodes can not be part of cluster.

Please be sure server definition for each node is same.

For example for all nodes, server definition must be same as below

server.0=ip0:2888:3888
server.1=ip1:2888:3888
server.2=ip2:2888:3888
server.3=ip3:2888:3888
server.4=ip4:2888:3888

In my case the issue was some how ClientPort attribute's value was missed in one of the box so in console it was showing as invalid config path.With the help of command 'zkServer.sh start-foreground' investigated and found root cause.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!