报错:
ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID zLg5ACOYRyWEjSIMfwF5fA doesn't match stored clusterId Some(ca5Ypdz5Sc2ZJX5aMh2HFw) 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)
解决方案:在当前kafka目录下
1.删掉logs下的所有文件。2.删除tmp下的所有文件。然后重新启动kafka