1. Background
Kafka’s physical machine is unexpectedly down, resulting in Kafka’s failure to start
2. Details of error report
[2022-08-09 08:20:42,097] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 123456 doesn't match stored clusterId Some(456789) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
at kafka.server.KafkaServer.startup(KafkaServer.scala:235)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
at kafka.Kafka$.main(Kafka.scala:82)
at kafka.Kafka.main(Kafka.scala)
3. Solution
It can be seen that the error is obvious. The cluster-id is not correct. At this time, we can modify the configuration of meta.properties
# The location of the meta.properties file can be found based on the value of the log.dirs parameter in the server.properties configuration file
vim meta.properties
cluster.id=123456
Then it can be started normally
Read More:
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] Win 10 Kafka error: failed to construct Kafka consumer
- Kafka error: ERROR There was an error in one of the threads during logs loading: java.lang.NumberFormatException: For input string: “derby” (kafka.log.LogManager)
- [Solved] Kafka Error: InvalidReplicationFactorException: Replication factor:
- [Solved] kafka startup Error: java.net.ConnectException: Connection refused
- [Solved] Kafka2.3.0 Error: Timeout of 60000ms expired before the position for partition could be determined
- Kafka Creates and Writes Logs Error [How to Solve]
- How to Solve Kafka Error: no leader
- kafka Error: Error while fetching metadata with correlation
- Kafka Error while fetching metadata with correlation id 1 : {alarmHis=LEADER_NOT_AVAILABLE}
- How to Solve canal & MYSQL or “Kafka cannot consume data” Error
- [Solved] Kafka Restarts error | Cloudera Manager Access Returns 500 | HDFS Startup Error
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- Huawei kafka Authentication error: Server not found in Kerberos database (7) – LOOKING_UP_SERVER
- Kafka configurate broker mapping error: discovered coordinator XXX rack: null
- Mac M1 Start Virtual Machine Centos8 with PD to install Kafka error: Error: VM option ‘UseG1GC‘
- [Solved] kafka Startup Error: Fatal error during KafkaServer startup
- Appium Top 10 Common Error [How to Solve]
- Common problems and solutions for CheckStyle errors