返回到文章

采纳

编辑于 3年前

kafka由于在follwer上删除topic而导致启动报错?当时把follwer当成了leader

kafka

当时把follwer当成了leader。

先删除topic的对应目录,然后通过命令删除topic,最后进入zookeeper里删除对应topic名

在启动的时候:

ERROR Exiting Kafka. (kafka.server.KafkaServerStartable)
[2021-09-28 19:30:45,700] INFO [ThrottledChannelReaper-ControllerMutation]: Shutting down (kafka.server.ClientQuotaManager$ThrottledChan
nelReaper)
[2021-09-28 19:30:46,700] INFO [ThrottledChannelReaper-ControllerMutation]: Stopped (kafka.server.ClientQuotaManager$ThrottledChannelRea
per)
[2021-09-28 19:30:46,700] INFO [ThrottledChannelReaper-ControllerMutation]: Shutdown completed (kafka.server.ClientQuotaManager$Throttle
dChannelReaper)
[2021-09-28 19:30:46,701] INFO Metrics scheduler closed (org.apache.kafka.common.metrics.Metrics)
[2021-09-28 19:30:46,701] INFO Closing reporter org.apache.kafka.common.metrics.JmxReporter (org.apache.kafka.common.metrics.Metrics)
[2021-09-28 19:30:46,702] INFO Metrics reporters closed (org.apache.kafka.common.metrics.Metrics)
[2021-09-28 19:30:46,705] INFO Broker and topic stats closed (kafka.server.BrokerTopicStats)
[2021-09-28 19:30:46,708] INFO App info kafka.server for 218 unregistered (org.apache.kafka.common.utils.AppInfoParser)
[2021-09-28 19:30:46,709] INFO [KafkaServer id=218] shut down completed (kafka.server.KafkaServer)
[2021-09-28 19:30:46,709] ERROR Exiting Kafka. (kafka.server.KafkaServerStartable)
[2021-09-28 19:30:46,710] INFO [KafkaServer id=218] shutting down (kafka.server.KafkaServer)
[2021-09-28 19:30:47,800] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)