Last active
February 5, 2021 10:19
-
-
Save edgar/7be8459b8e281464ae06faec15227f28 to your computer and use it in GitHub Desktop.
Run spotify/kafka docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 spotify/kafka | |
docker run -it --rm spotify/kafka /bin/bash | |
$KAFKA_HOME/bin/kafka-console-producer.sh --broker-list 172.17.0.2:9092 --topic test | |
docker run -it --rm spotify/kafka /bin/bash | |
$KAFKA_HOME/bin/kafka-console-consumer.sh --zookeeper 172.17.0.2:2181 --topic test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice tips! Thank you edgar!