我使用的是kafkav2.13,我遵循的是快速入门指南。
但是,在启动kafka服务器时:
zookeeper-server-start \config\server.properties
在超时60秒之前,松开看起来很好:
[2020-12-22 15:46:17,555] ERROR Error checking containers (org.apache.zookeeper.server.ContainerManager)
java.lang.NullPointerException
at org.apache.zookeeper.server.ContainerManager.getCandidates(ContainerManager.java:143)
at org.apache.zookeeper.server.ContainerManager.checkContainers(ContainerManager.java:112)
at org.apache.zookeeper.server.ContainerManager$1.run(ContainerManager.java:78)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
如果我尝试创建一个主题,我会得到以下信息:
[2020-12-22 15:43:20,473] WARN [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
发生了什么?如何修复此问题以使服务器/代理正确启动?
暂无答案!
目前还没有任何答案,快来回答吧!