Hi@akhtar,
It is a must to set up ZooKeeper for Kafka. ZooKeeper performs many tasks for Kafka, but in short, we can say that ZooKeeper manages the Kafka cluster state.
https://zookeeper.apache.org/releases.html
-
Unzip the file. Inside the conf directory, rename the file zoo_sample.cfg as zoo.cfg.
-
The zoo.cfg file keeps configuration for ZooKeeper, i.e. on which port the ZooKeeper instance will listen, data directory, etc.
-
The default listen port is 2181. You can change this port by changing the client port.
-
The default data directory is /tmp/data. Change this, as you will not want ZooKeeper's data to be deleted after some random timeframe.
-
Go to the bin directory.
-
Start ZooKeeper by executing the command ./zkServer.sh start.