ZooKeeper Startup Error: Error contacting service. It is probably not running

Zookeeper can be started, but it is found that the master election has not been conducted by checking the server status:

Possible problems and solutions:

If configured step by step, a myid file should be created in the directory specified by dataDir of each node. This myid is consistent with the server ID and is used to uniquely identify a machine in a zookeeper cluster. Each machine cannot be repeated.

Recheck the myid file to ensure that the myid value of each server is not repeated.

Similar Posts: