This repository includes docker compose file and the script file to start a Kafka cluster with docker
- Install docker
- Pull the docker image from docker hub, which contains zookeeper and kafka files
docker pull woohanx/kfk_node:v4
- Run the upKafka.sh script to start your kafka cluster with as many nodes as you need
./upKafka.sh NUM_OF_NODES
./upKafka.sh 3
You should see:
Creating kfk_node_1 ... done Creating kfk_node_2 ... done Creating kfk_node_3 ... done
The kafka cluster with 3 nodes is started up