关注互联网应用及运维技术的个人博客

ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)

kafka启动报错

启动命令

./kafka-server-start.sh -daemon ../config/server.properties
 ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID eD8ft0AURSqBAMYxfSlhUg doesn't match stored clusterId Some(c0DJTosJQsOfrtdo2NnOgQ) 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:220)
	at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
	at kafka.Kafka$.main(Kafka.scala:84)
	at kafka.Kafka.main(Kafka.scala)

解决办法

建议删除 kafka-logs

去这里查看kafka-logs放在那里

# kafka安装根目录下
vim config/server.properties

默认位置

log.dirs=/tmp/kafka-logs

删除kafka-logs

rm -rf /tmp/kafka-logs/*
赞(0)
未经允许不得转载:飞天狒狒 » ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址