我启动了Zookeeper日志并报告了一个错误

kwvwclae  于 2022-12-09  发布在  Apache
关注(0)|答案(1)|浏览(202)

我正在使用zookeeper,3.6.1我的电脑是Mac,我用brew工具安装了zookeeper,但是我用命令zkserver start失败了。我用jps -l查看进程,发现了zookeeper的进程。
然后我继续查看zookeeper启动的日志文件,发现了一个错误。

2020-11-18 15:48:28 ContextHandler [WARN] Empty contextPath
2020-11-18 15:48:29 ServerCnxnFactory [WARN] maxCnxns is not configured, using default value 0.
2020-11-18 15:48:29 NIOServerCnxnFactory [ERROR] Thread Thread[main,5,main] died
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
        at org.apache.jute.BinaryOutputArchive.stringToByteBuffer(BinaryOutputArchive.java:80)
        at org.apache.jute.BinaryOutputArchive.writeString(BinaryOutputArchive.java:110)
        at org.apache.zookeeper.data.Id.serialize(Id.java:51)
        at org.apache.jute.BinaryOutputArchive.writeRecord(BinaryOutputArchive.java:126)
        at org.apache.zookeeper.data.ACL.serialize(ACL.java:52)
        at org.apache.zookeeper.server.ReferenceCountedACLCache.serialize(ReferenceCountedACLCache.java:152)
        at org.apache.zookeeper.server.DataTree.serializeAcls(DataTree.java:1359)
        at org.apache.zookeeper.server.DataTree.serialize(DataTree.java:1372)
        at org.apache.zookeeper.server.util.SerializeUtils.serializeSnapshot(SerializeUtils.java:171)
        at org.apache.zookeeper.server.persistence.FileSnap.serialize(FileSnap.java:227)
        at org.apache.zookeeper.server.persistence.FileSnap.serialize(FileSnap.java:246)
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.save(FileTxnSnapLog.java:472)
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:291)
        at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:285)
        at org.apache.zookeeper.server.ZooKeeperServer.loadData(ZooKeeperServer.java:484)
        at org.apache.zookeeper.server.ZooKeeperServer.startdata(ZooKeeperServer.java:655)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.startup(NIOServerCnxnFactory.java:758)
        at org.apache.zookeeper.server.ServerCnxnFactory.startup(ServerCnxnFactory.java:130)
        at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:159)
        at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:112)
        at org.apache.zookeeper.server.ZooKeeperServerMain.main(ZooKeeperServerMain.java:67)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:140)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)
5tmbdcev

5tmbdcev1#

可能是关于brew安装的问题。请尝试其他安装方法

相关问题