error during KafkaServerStartable startup Prepare to shutdown kafka server KafkaServerStartable

0 votes

I tried to start kafka server, but I am getting this below error.

FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)
java.lang.RuntimeException: A broker is already registered on the path /brokers/ids/0. This probably indicates that you either have configured a brokerid that is already in use, or else you have shutdown this broker and restarted it faster than the zookeeper timeout so it appears to be re-registering.
        at kafka.utils.ZkUtils.registerBrokerInZk(ZkUtils.scala:305)
        at kafka.utils.ZkUtils.registerBrokerInZk(ZkUtils.scala:291)
        at kafka.server.KafkaHealthcheck.register(KafkaHealthcheck.scala:70)
        at kafka.server.KafkaHealthcheck.startup(KafkaHealthcheck.scala:51)
        at kafka.server.KafkaServer.startup(KafkaServer.scala:244)
        at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
        at kafka.Kafka$.main(Kafka.scala:67)
        at kafka.Kafka.main(Kafka.scala)
[2016-09-28 16:15:55,896] INFO [Kafka Server 0], shutting down (kafka.server.KafkaServer)

How can I solve this error?

Thank You

Mar 31, 2020 in Apache Kafka by akhtar
• 38,260 points
5,484 views

1 answer to this question.

0 votes

Hi@akhtar,

This error occurs because zookeeper is running already. So kill the process first and then try again and it will work.

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

Hope this works for you!

Get your Kafka certification today to become certified professional

Thank You

answered Mar 31, 2020 by MD
• 95,460 points

what is 

zookeeper.properties process in zookeeper and where is it?

Related Questions In Apache Kafka

0 votes
1 answer
0 votes
1 answer

How to start Kafka server?

Hi@akhtar, You need the start your zookeeper service ...READ MORE

answered Dec 7, 2020 in Apache Kafka by MD
• 95,460 points
1,946 views