啟動kafka時,kafka進程無法啟動,查閱log發現存在如下問題:
2020-07-04 10:44:54,659] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) kafka.common.InconsistentClusterIdException: The Cluster ID GG0_OhvsReio3iqC7tMqTg doesn't match stored clusterId Some(GIt9-opdTQC_PKpS1GM6Zg) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong. at kafka.server.KafkaServer.startup(KafkaServer.scala:218) at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44) at kafka.Kafka$.main(Kafka.scala:84) at kafka.Kafka.main(Kafka.scala)
修改kafka的log文件夾中meta.properties的如下配置:
cluster.id=xx
broker.id=xx
cluster.id修改為與log中報錯的cluster.id一致
broker.id修改為與server.properties中broker.id一致
