Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences between zookeeper-server-start.sh and kafka-server-start.sh

Is one of them more recommended/preferred to use than the other?

like image 402
Danny Avatar asked Jan 25 '26 10:01

Danny


1 Answers

Kafka uses Zookeeper so you must start a Zookeeper server before starting the Kafka broker. Zookeeper and Kafka broker are two distinct things and both of them are required in order to run a Kafka Cluster. Kafka is a distributed system and is built to use Zookeeper which is responsible for controller election, topic configuration, clustering etc.

In order to run Zookeeper you need to set the parameters in the configuration file config/zookeeper.properties and then start the ZK server using

bin/zookeeper-server-start.sh config/zookeeper.properties

Then you need to run at least one Kafka broker which can be configured in config/server.properties file and then start it using

bin/kafka-server-start.sh config/server.properties
like image 173
Giorgos Myrianthous Avatar answered Jan 27 '26 01:01

Giorgos Myrianthous



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!