返回到文章

采纳

编辑于

Kafka启动自带的zookeeper时候 报 error: could not find class org.apache.zookeeper.server.quorum.quorumpeermain

kafka

Kafka启动自带的zookeeper时候 报 error: could not find class org.apache.zookeeper.server.quorum.quorumpeermain

Exception in thread "main" java.lang.NoSuchMethodError: 
method java.lang.management.ManagementFactory.getPlatformMBeanServer 
with signature ()Ljavax.management.MBeanServer; was not found.
at org.apache.zookeeper.jmx.ManagedUtil.registerLog4jMBeans(ManagedUtil.java:48)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:114)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:103)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:7

怎么办啊?我是liunx系统