DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Fencing in Distributed Systems: Twitter's Approach

Trending

  • Metal Default, a New Build Cloud, and a New Format
  • Lambda-Driven API Design: Building Composable Node.js Endpoints With Functional Primitives
  • The Hidden Cost of AI Tokens: Engineering Patterns for 10x Resource Efficiency
  • Production-Grade RAG: Why Vector Search Isn't Enough (and How Hybrid Search Fills the Gaps)

Resolving a Common Error in Apache Zookeeper

Explains how to resolve: Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain” when starting Apache Zookeeper.

By 
Gautam Goswami user avatar
Gautam Goswami
DZone Core CORE ·
Updated Jan. 28, 21 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
12.7K Views

Join the DZone community and get the full member experience.

Join For Free

This miniature article explains how to resolve the following error:

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

This appears when we start the Apache Zookeeper (apache-zookeeper-3.5.6.tar.gz) installed on a multi-node cluster. Distributed systems/applications leverage the service offers by Apache Zookeeper to manage their synchronization, configuration service as well as naming registry.

Apache Zookeeper is a primary backbone for Hadoop, Kafka, HBase, Tableau, etc. The aforementioned error displays on the console when executing the script zkServer.sh with the input parameter start available inside the bin directory. This happens due to the unavailability of the lib directory that holds the zookeeper-3.5.6.jar file.

Instead of extract/install apache-zookeeper-3.5.6.tar.gz on each node in the cluster, we should proceed with apache-zookeeper-3.5.6-bin.tar.gz, which has all the required jar files inside the lib directory. This binary can be downloaded from the following link found here.

Apache ZooKeeper

Opinions expressed by DZone contributors are their own.

Related

  • Fencing in Distributed Systems: Twitter's Approach

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook