Druid fails to start with the following error:

[Fri May 28 00:17:16 2021] Command[zk] exited (pid = 3835, exited = 1)
[Fri May 28 00:17:16 2021] Command[zk] failed, see logfile for more details: /var/druid/var/sv/zk.log
Copy the code

The error message is as follows:

Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
Copy the code

The content above is what you see in the console.

Causes and Solutions

Zookeeper is not installed on your Druid server.

Once in the current Druid directory, execute the following commands in sequence:

The curl https://archive.apache.org/dist/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gz - o zookeeper - 3.4.11. Tar. Gz tar -xzf Zookeeper-3.4.11.tar. gz mv Zookeeper-3.4.11zkCopy the code

This command will download the ZooKeeper-3.4.11 version remotely and unzip it into the zK directory of the current Druid.

This problem occurred in the version of Druid 0.15.

In the current version of 0.21, there is no need for this.

www.ossez.com/t/druid-0-1…