赞
踩
ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 1m798TADRZerLuFBGDS9mw doesn't match stored clusterId Some(8XlbKFlXSE2hSzZ6OX_Rqg) 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)
- [2021-11-23 16:55:08,761] INFO Cluster ID = 1m798TADRZerLuFBGDS9mw (kafka.server.KafkaServer)
- [2021-11-23 16:55:08,769] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
- kafka.common.InconsistentClusterIdException: The Cluster ID 1m798TADRZerLuFBGDS9mw doesn't match stored clusterId Some(8XlbKFlXSE2hSzZ6OX_Rqg) 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)
- [2021-11-23 16:55:08,771] INFO shutting down (kafka.server.KafkaServer)
- [2021-11-23 16:55:08,774] INFO [feature-zk-node-event-process-thread]: Shutting down (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
- [2021-11-23 16:55:08,774] INFO [feature-zk-node-event-process-thread]: Stopped (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
- [2021-11-23 16:55:08,775] INFO [feature-zk-node-event-process-thread]: Shutdown completed (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
解决办法是 日志路径
进入kafka文件夹
cat config/server.properties | grep log.dirs
log.dirs=/data/kafka_logs
找到对应的 目录
cd /data/kafka_logs 里面 有个 meta.properties 文件,需要把这个删除或者 重命名下,
然后再次启动 kafka
bin/kafka-server-start.sh -daemon config/server.properties
查看端口号
netstat -nltp | grep 9092
详解:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。