How to change broker.id of Kafka broker on a RHEL environment
Issue
- How to change broker.id of Kafka broker on a RHEL environment?
- When to change broker.id in server.properties, the following error occurs
[2024-09-20 10:47:27,737] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentBrokerIdException: Configured broker.id 1 doesn't match stored broker.id Some(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).
at kafka.server.KafkaServer.getOrGenerateBrokerId(KafkaServer.scala:860)
at kafka.server.KafkaServer.startup(KafkaServer.scala:233)
at kafka.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
[2024-09-20 10:47:27,740] INFO shutting down (kafka.server.KafkaServer)
Environment
- Red Hat Streams for Apache Kafka 2.2 on RHEL
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.