修改kafka broker id产生的错误

错误:

[2016-10-13 13:49:56,746] FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)

kafka.common.InconsistentBrokerIdException: Configured broker.id 2 doesn't match stored broker.id 0 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).


找到配置文件

cat server.properties

查看log.dirs所在位置

log.dirs=/home/user/tools/kafka/data

按着这个路径找到

meta.properties

修改brokerid

你可能感兴趣的:(修改kafka broker id产生的错误)