报错日志

kafka.common.InconsistentBrokerIdException: Configured broker.id 300 doesn’t match stored broker.id 97 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).

问题解决

  1. Configured broker.id 300 doesn't match stored broker.id 97


这句话告诉我们配置文件中的 broker.id 300与meta.properties中存储的 broker.id 97不匹配,在配置里把broker.id 改成97就可以了,其他 kafka 节点根据日志报错进行同样修改即可。

如下为 broker.id 修改后的截图。保存更改后重启 kafka 即可

image.png