我们在配置kafka时可能会修改brokerid,这个时候启动可能会遇到报错
报错详细信息:
[2018-09-03 07:51:10,759] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentBrokerIdException: Configured broker.id 0 doesn't match stored broker.id 1 in meta.properties. If you moved your data, make sure your configured broker.id matches. If you intend to create a new broker, you should remove all data in your data directories (log.dirs).
at kafka.server.KafkaServer.getBrokerIdAndOfflineDirs(KafkaServer.scala:681)
at kafka.server.KafkaServer.startup(KafkaServer.scala:209)
at io.confluent.support.metrics.SupportedServerStartable.startup(SupportedServerStartable.java:117)
at io.confluent.support.metrics.SupportedKafka.main(SupportedKafka.java:66)
[2018-09-03 07:51:10,762] INFO shutting down (kafka.server.KafkaServer)
[2018-09-03 07:51:10,766] WARN (kafka.utils.CoreUtils$)
java.lang.NullPointerException
at kafka

最低0.47元/天 解锁文章
375

被折叠的 条评论
为什么被折叠?



