kafka常见问题汇总

1CDH重新安装kafka,启动失败

Fatal error during KafkaServer startup. Prepare to shutdown
kafka.common.InconsistentBrokerIdException: Configured broker.id 988 doesn't match stored broker.id 967 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:707)
	at kafka.server.KafkaServer.startup(KafkaServer.scala:212)
	at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:42)
	at kafka.Kafka$.main(Kafka.scala:75)
	at com.cloudera.kafka.wrap.Kafka$$anonfun$1.apply(Kafka.scala:92)
	at com.cloudera.kafka.wrap.Kafka$$anonfun$1.apply(Kafka.scala:92)
	at com.cloudera.kafka.wrap.Kafka$.runMain(Kafka.scala:103)
	at com.cloudera.kafka.wrap.Kafka$.main(Kafka.scala:95)
	at com.cloudera.kafka.wrap.Kafka.main(Kafka.scala)

1.1原因分析,kafka在卸载过程中,由于上一个版本卸载不干净,导致重启失败

1.2解决方法:

    查看kafka安装文件目录

kafka常见问题汇总_第1张图片

在启动之前,将本地文件 /var/local/kafka/data下的meta.properties文件删除(不放心可以备份一下),然后再重启

 

你可能感兴趣的:(kafka)