Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

zookeeper unable to start on hdp 2.3.2

avatar
Rising Star

Unable to start zookeeper, getting following error:

Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

1 ACCEPTED SOLUTION

avatar
Rising Star

Issue is resolved after deleting the zookeeper services and reinstalling. Unable to start the service due to improper configuration of the service.

View solution in original post

3 REPLIES 3

avatar

Just check if you are running into multinode cluster and facing timeout issue below:-

https://issues.apache.org/jira/browse/ZOOKEEPER-1213

If you are running single node what is the result of

./zookeeper/bin/zkServer.sh start

avatar
Rising Star

nope it's not timeout issue, see my error its related to library issue I guess. Anyway here is the start output

# rm /var/run/zookeeper/zookeeper_server.pid rm: remove regular file `/var/run/zookeeper/zookeeper_server.pid'? y # /usr/hdp/2.3.2.0-2950/zookeeper/bin/zkServer.sh start ZooKeeper JMX enabled by default Using config: /usr/hdp/2.3.2.0-2950/zookeeper/bin/../conf/zoo.cfg Starting zookeeper ... STARTED # cat /var/run/zookeeper/zookeeper_server.pid 8760# ps -ef|grep 8760 root 8876 27093 0 23:53 pts/9 00:00:00 grep 8760 # /usr/hdp/2.3.2.0-2950/zookeeper/bin/zkServer.sh status ZooKeeper JMX enabled by default Using config: /usr/hdp/2.3.2.0-2950/zookeeper/bin/../conf/zoo.cfg Error contacting service. It is probably not running.

cat /var/log/zookeeper/zookeeper.out Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

avatar
Rising Star

Issue is resolved after deleting the zookeeper services and reinstalling. Unable to start the service due to improper configuration of the service.