Last active
November 7, 2016 19:34
-
-
Save bertt/884aa9498d0f3b0c25c339d2ba4f03b0 to your computer and use it in GitHub Desktop.
Apache Kafka Hello World
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
Apache Kafka hello World | |
1] Zookeeper | |
docker run -d -p 2181:2181 --name zookeeper jplock/zookeeper | |
2] Kafka | |
docker run -d --name kafka --link zookeeper:zookeeper ches/kafka | |
3] Create Consumer: | |
docker run -t -i --rm geertvb/kafkacat kafkacat -C -b 172.17.0.3:9092 -t testtopic | |
4] Create Producer: | |
docker run -t -i --rm geertvb/kafkacat kafkacat -P -b 172.17.0.3:9092 -t testtopic | |
and enter some messages, should be visible in the consumer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So what is this about?