Skip to content

Instantly share code, notes, and snippets.

View HassankSalim's full-sized avatar
💭
Always looking for interesting work and tech

Hassan K Salim HassankSalim

💭
Always looking for interesting work and tech
View GitHub Profile
docker stop kafka-server && docker rm kafka-server
docker stop zookeeper-server && docker rm zookeeper-server
docker run -d --name zookeeper-server --network host -e ALLOW_ANONYMOUS_LOGIN=yes bitnami/zookeeper:latest
docker run -d --name kafka-server --network host -e ALLOW_PLAINTEXT_LISTENER=yes -e KAFKA_CFG_ZOOKEEPER_CONNECT=localhost:2181 bitnami/kafka:latest
kafka-topics.sh --list --zookeeper localhost:2181
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic status