DevOps | Cloud | Analytics | Open Source | Programming





How To Fix - "Fatal Error During KafkaServerStartable" in Kafka ?



In this Post , we will see How To Fix - "Fatal Error During KafkaServerStartable" in Kafka ? At times , while starting the Kafka Server , you might face the below error -


FATAL Fatal error during KafkaServerStartable startup. . Prepare to shutdown (kafka.server.KafkaServerStartable)<!-- more -->


We will see how we can fix this issue . First thing first , hopefully you follow the below CHRONOLOGICAL steps while booting up your Kafka Cluster.

  • First Ensure that there are no Running instances of Kafka or Zookeeper. If yes , then first Stop Kafka and Zookeeper. You could use the .sh or .bat (if you are using windows - comes as in the config folder) to stop the processes. You can also use below commands to kill the Zookeeper process -

$ ps aux | grep zookeeper
$kill -9 <zookeeper.properties process>

 

  • Clean up the directories - kafka-log & Zookeeper-log
 

  • Next check the zookeeper.properties file and find the zookeeper data dir. Delete the contents of data dir in zookeeper.
  Once all the above (or some as applicable to your scenario) steps are completed , do the following exactly in the same order -

  • Start the Zookeeper Server First . Wait till your zookeeper ensemble is up and running . Once that is confirmed , THEN AND ONLY THEN , you should proceed next . This is so that you give the Zookeeper nodes sufficient time to join the ensemble .
 

  • Next Start the Kafka Server
  Hopefully this will solve the issue.   Other Similar Reads -

 

error halting kafka kafka server kafkaserverstartable, kafka server error, the broker is trying to join the wrong cluster. configured , zookeeper.connect may be wrong., kafka start error, kafka server replicamanager logdirfailurehandler, a broker is already registered on the path /brokers/ids/0, info kafka server 0 shutting down (kafka server kafkaserver), an error occurred while getting broker sessions, Fatal Error During KafkaServerStartable" in Kafka, error halting kafka kafka server kafkaserverstartable, kafka server error, error exiting kafka due to fatal exception, the broker is trying to join the wrong cluster. configured zookeeper.connect may be wrong., info kafka server 0 shutting down (kafka server kafkaserver), kafka start error, a broker is already registered on the path /brokers/ids/0, an error occurred while getting broker sessions, kafka error codes, kafka error handling, kafka error handling best practices, kafka broker, kafka documentation, kafka exception handling java, kafka producer error handling, kafka consumer, kafka server error, error exiting kafka due to fatal exception, kafka start error, the broker is trying to join the wrong cluster. configured zookeeper.connect may be wrong., a broker is already registered on the path /brokers/ids/0, kafka server replicamanager logdirfailurehandler,  timed out waiting for connection kafka, received error code 1 shutdown kafka