Last active
May 5, 2020 07:44
-
-
Save kokospapa8/582c8ab538b27aa0442f19ef1237b734 to your computer and use it in GitHub Desktop.
kafka cheatsheet
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 | |
| - list | |
| kafka-topics --list --bootstrap-server="PLAINTEXT://kafka0:9092" | |
| - create | |
| kafka-topics --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test | |
| - | |
| https://kafka.apache.org/quickstart | |
| # host machine | |
| > zookeeper kafka-topics --list --zookeeper localhost:2181 |
Author
Author
kafka-console-consumer.sh --bootstrap-server localhost: --topic --from-beginning
Author
kafka-topics --list --zookeeper localhost:2181
Author
kafka-topics --zookeeper 127.0.0.1:2181 --delete --topic "someTopic"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zookeeper kafka-topics --list --zookeeper localhost:2181