Apache Kafka multi-zookeeper, multi-broker Setup in Windows using Docker


Before proceeding, we need to have the following already running.

1. Git and GitHub access
2. Docker for windows
3. Kafka local setup [https://medium.com/@catchanilonline/apache-kafka-setup-in-windows-420f3cfd33b9]


  1. Check out the code from below git link to your local folder

2. In command prompt enter the below command to start


docker-compose -f zk-multiple-kafka-multiple.yml up

3. Testing the setup, using the below commands

kafka-topics — -zookeeper — -topic multi-reps — -create — -partitions 12 — -replication-factor 3

kafka-topics — -zookeeper — -topic multi-reps — -describe

Great, we are all set.

Happy Programming!

Reference links:-

Codebase link [https://github.com/simplesteph/kafka-stack-docker-compose]
Kafka local setup [https://medium.com/@catchanilonline/apache-kafka-setup-in-windows-420f3cfd33b9]
Kafka Tutorial link [https://www.linkedin.com/learning/learn-apache-kafka-for-beginners]

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store