且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

启动 Zookeeper 集群.错误:无法找到或加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain

更新时间:2022-02-24 03:59:24

您应该能够运行 zkServer.sh 来获得集群设置.它将使用您手动提供的相同 conf/zoo.cfg,其中将包含集群端点.

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.

检查类路径中缺少什么(并查看正确的 java 命令)的***方法是运行您说对您有用的 zkServer.sh.

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