Created
January 30, 2019 09:57
-
-
Save kavimaluskam/e180cfe6756b2ee4d8cea5190f0ebfe5 to your computer and use it in GitHub Desktop.
Cheat sheet for Kafka Console Consumer
This file contains 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
# Enter Kafka Shell Client | |
make kafka-shell | |
# Assign topic name in variable | |
TOPIC=test | |
# Consumer for console text output, no stream offset | |
kafka-console-consumer --topic=$TOPIC --bootstrap-server=$BROKERS --from-beginning | |
# Console consumer will print each records in the topic | |
# ... | |
# ... | |
# ... | |
# Exit Docker when console consumer is done | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment