kafka重启报 broker is already registered on the path /brokers/ids/1

kafka启不来,报如下错误:

java.lang.RuntimeException: A broker is already registered on the path /brokers/ids/1. This probably indicates that you either have configured a brokerid that is already in use, or else you have shutdown this broker and restarted it faster than the zookeeper timeout so it appears to be re-registering.
        at kafka.utils.ZkUtils.registerBrokerInZk(ZkUtils.scala:417)
        at kafka.utils.ZkUtils.registerBrokerInZk(ZkUtils.scala:403)
        at kafka.server.KafkaHealthcheck.register(KafkaHealthcheck.scala:70)
        at kafka.server.KafkaHealthcheck.startup(KafkaHealthcheck.scala:50)
        at kafka.server.KafkaServer.startup(KafkaServer.scala:280)
        at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:38)
        at kafka.Kafka$.main(Kafka.scala:65)
        at kafka.Kafka.main(Kafka.scala)

请问是什么问题,怎么恢复。






发表于: 21天前   最后更新时间: 21天前   游览量:153
上一条: 到头了!
下一条: 已经是最后了!

评论…


  • 当你kill你的kafka进程或kafka崩溃时会发生这种情况,是因为没有正确关闭它与zookeeper连接导致的。
    找到连接,kill掉它。
  • 评论…
    • in this conversation