Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 621 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 621 Bytes

#creates all zookeeper, kafka and application docker

docker-compose up -d

#get list of all containers and ID for producer and consumer

docker ps 
docker-compose down
docker-compose build
docker-compose up

#produce to topic

docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic my-topic

#Consume topic

docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic my-topic --from-beginning

slack: https://app.slack.com/client/T07D61D72RY/C07D5TQCS1H