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

明仔闯天涯 发表于: 2021-09-28   最后更新时间: 2021-09-29 00:04:01   1,331 游览

当时把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$)
发表于 2021-09-28
添加评论

反正已经挂了
直接格式化这块盘,启动时会自动恢复的

这个主意不太行

你的答案

查看kafka相关的其他问题或提一个您自己的问题