Setup & Commands How to run confluent kafka docker in AWS
- Create an ec2 instance
- install git
- install docker
- install docker-compose
- git clone https://github.com/confluentinc/cp-docker-images
- cd cp-docker-images
- git checkout 5.2.1-post
- cd examples/cp-all-in-one/
- docker-compose up -d --build Linux command
zookeeper:2181 --replication-factor 1 --partitions 1 --topic users
Docker command
bash interactive mode - docker exec -it broker /bin/bash
sh mode - docker-compose exec broker sh
kafka-topics --zookeeper zookeeper:2181 --list