赞
踩
报的错:
ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentBrokerIdException: Configured broker.id 0 doesn’t match stored broker.id Some(1) in meta.properties. If you moved your data, make sure your configured broker.id matches. If you intend to create a new broker, you should remove all data in your data directories (log.dirs).
at kafka.server.KafkaServer.getOrGenerateBrokerId(KafkaServer.scala:793)
at kafka.server.KafkaServer.startup(KafkaServer.scala:221)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
meta.properties(路径:/opt/module/kafka/logs)里面的id值和/opt/module/kafka/config的server.properties中的broker.id不一致。
起因是这样的:由于误删除了linux上的文件,以至于cd这样的命令都无法使用,幸亏还有其他的节点可以使用,经过一番倒腾后,成功的运行了zookeeper,然而运行kafka的时候,报错了ERROR Fatal error during KafkaServer startup. Prepare to shutdown ,错误提示如下的第一行。
这是我修改后的 broker.id 原来是1
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。