- Start Kafka and Zookeeper: Run the kafka cluster with only n brokers
docker-compose up
- Run the Master Node: Launch the master node script in one terminal:
python master.py
- Run Worker Nodes: Launch multiple instances of the worker node script: syntax: python worker.py worker_id server:port
syntax: python worker.py worker_id server:port
python worker.py worker1 9091
python worker.py worker2 9092
python worker.py worker3 9093