Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zookeeper: It is probably not running

I am trying to start zookeeper on a remote virtual machine. I use this for my project regularly and I do not have any problems while starting the zookeeper. But lately when I am trying to start the server I am getting an error. When I give ./zkServer.sh start it shows zookeeper server started. When I check for status using ./zkServer.sh status it shows "Error contacting service. It is probably not running." I am totally working with 5 Virtual Machines. All these machines were fine initially. I started getting problems with machine 1. But recently I have the same problem with all my virtual machines. Can someone tell me what the issue is and suggest me a way to clear this issue?

enter image description here

like image 992
ASP Avatar asked Apr 28 '15 02:04

ASP


People also ask

Why ZooKeeper is not working?

ZooKeeper might fail to start if the ZooKeeper ensemble is not configured correctly, or there are problems with file permissions, port conflicts, or disk corruption. In a shared file system environment, embedded ZooKeeper can fail to start if it is already running on another resource.

How can I tell if ZooKeeper is running on Windows?

To check if Zookeeper is accessible. One method is to simply telnet to the proper port and execute the stats command. root@host:~# telnet localhost 2181 Trying 127.0.

How do I enable ZooKeeper audit?

ZooKeeper Audit Logs By default audit logs are disabled. To enable audit logs configure audit. enable=true in conf/zoo. cfg.


1 Answers

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
like image 89
Nipun Talukdar Avatar answered Oct 24 '22 05:10

Nipun Talukdar