CDH reinstalling kafka reports errors, quite common errors

Error log


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).

problem solved

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



This sentence tells us that the broker.id 300 in the configuration file does not match the broker.id 97 stored in meta.properties. In the configuration, you can change the broker.id to 97. Other kafka nodes modify the same according to the log error. That's it.


The following is a modified screenshot of broker.id. After saving the changes, restart kafka


image.png


Guess you like

Origin www.cnblogs.com/gaohanghang/p/12695355.html