ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) kafka.common.InconsistentClusterIdException: The Cluster ID xNzZgyUhQcutut7QneTREw doesn't match stored clusterId Some(cj2ltuwbSQGe4WB9-9D1rw) 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.Kafka$.main(Kafka.scala:109) at kafka.Kafka.main(Kafka.scala)
第一次学Kafka,在Windows中安装。在成功启动zookeeper注册中心之后Kafka一直闪退连接不上,我在网上一直找解决方法全是liunx。不断尝试最后发现是zookeeper启动之后在D:\kafka_2.12-2.8.0\logs中产生的日志文件消息
Kafka在启动时读取不到,在config文件目录中server.properties文件中
默认是tmp/logs,你需要改成你自己logs文件的目录,使Kafka在启动时能读取到zookeeper的信息。