Starting Zookeeper Cluster. Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

I got the Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain while installing 3.5.5, because I had downloaded the zookeeper .tar file and not the .bin.tar file. Downloading, untarring and using the bin.tar file fixed it for me.


This happens when you download and used apache-zookeeper-X.X.X.tar.gz, you should use apache-zookeeper-X.X.X-bin.tar.gz. this will surely solve this issue


The issue can be solved by untaring apache-zookeeper-3.5.6-bin.tar.gz. Initially, I encountered the same error while untared/installed apache-zookeeper-3.5.6.tar.gz and executed /bin/zkServer.sh start

Please make sure you have downloaded apache-zookeeper-3.5.6-bin.tar.gz