Skip to content

Instantly share code, notes, and snippets.

@kavimaluskam
Created January 30, 2019 09:57
Show Gist options
  • Save kavimaluskam/e180cfe6756b2ee4d8cea5190f0ebfe5 to your computer and use it in GitHub Desktop.
Save kavimaluskam/e180cfe6756b2ee4d8cea5190f0ebfe5 to your computer and use it in GitHub Desktop.
Cheat sheet for Kafka Console Consumer
# 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