Starting zookeeper… Already running as process 1949

For example, zookeeper was not started repeatedly, but was started for the first time. The reason may be that zookeeper cluster is not shut down normally, such as abnormal shutdown, power failure, etc. Zookeeper saves the last started process number in zookeeper_ server.pid In this file, this file is in zookeeper_ HOME/conf/ zoo.cfg In the directory specified by the dataDir configuration item in, delete the file directly, and then restart zookeeper.

Friendly tips: do not shut down the virtual machine directly, but use the script to shut down the cluster first, otherwise some unexpected exceptions may appear next time.

Read More: