当前位置:   article > 正文

kafka启动失败_error fatal error during kafkaserver startup. prep

error fatal error during kafkaserver startup. prepare to shutdown (kafka.ser

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)

  1. [2021-11-23 16:55:08,761] INFO Cluster ID = 1m798TADRZerLuFBGDS9mw (kafka.server.KafkaServer)
  2. [2021-11-23 16:55:08,769] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
  3. 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.
  4. at kafka.server.KafkaServer.startup(KafkaServer.scala:218)
  5. at kafka.Kafka$.main(Kafka.scala:109)
  6. at kafka.Kafka.main(Kafka.scala)
  7. [2021-11-23 16:55:08,771] INFO shutting down (kafka.server.KafkaServer)
  8. [2021-11-23 16:55:08,774] INFO [feature-zk-node-event-process-thread]: Shutting down (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
  9. [2021-11-23 16:55:08,774] INFO [feature-zk-node-event-process-thread]: Stopped (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
  10. [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

详解:

Kafka启动异常之InconsistentClusterIdException_踏雪无痕-CSDN博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/662909
推荐阅读
相关标签
  

闽ICP备14008679号