./zkServer.sh status Error contacting service. It is probably not running ./zkServer.sh status Error contacting service. It is probably not running hadoop hadoop

./zkServer.sh status Error contacting service. It is probably not running


https://stackoverflow.com/a/29950279/6419332

You can easily debug it by zkServer.sh start-foreground

zkServer.sh start-foreground makes it run out of demon mode!!!


The Zookeeper servers are not able to find their myid file under the dataDir.Here the dataDir is set as /usr/local/zookeeper/, Create the myid files directly under the defined dataDir.

Restart Zookeeper servers after making the changes.