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

前端 未结 6 1244
粉色の甜心
粉色の甜心 2021-02-04 03:11

(I\'m running on CentOS 5.8). I\'ve been following the direction for a Clustered (Multiserver) Zookeeper Set-up, but getting an error when I try to start up my server. When I ru

相关标签:
6条回答
  • 2021-02-04 03:28

    You should be able to run zkServer.sh to get a clustered setup. It will use the same conf/zoo.cfg that you are providing manually, which will contain the cluster endpoints.

    The best way to check what you are missing from your classpath (and see the proper java command) is to run the zkServer.sh you said worked for you.

    When it starts up, check the actual command used like this:

    ps -ef | grep zookeeper
    
    0 讨论(0)
  • 2021-02-04 03:33

    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.

    0 讨论(0)
  • 2021-02-04 03:34

    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

    0 讨论(0)
  • 2021-02-04 03:36

    I also get this error when try to run Apache Zookeper v3.5.5 on Windows:

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

    As said by @Onnonymous, I finish my problem by downloading the .bin.tar.gz (here) instead of .tar.gz version.

    0 讨论(0)
  • 2021-02-04 03:54

    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

    0 讨论(0)
  • 2021-02-04 03:54

    I got the same errors. I solved the error by check the README.md file in apache-zookeeper-[version].tar.gz Just type:

    mvn clean install -DskipTests
    

    then start the zookeeper. You will solve the error, too.

    0 讨论(0)
提交回复
热议问题