Skip to content

Instantly share code, notes, and snippets.

@kavimaluskam
Last active January 30, 2019 09:58
Show Gist options
  • Save kavimaluskam/7818ea1687f81c95b4eb2498ad791b1e to your computer and use it in GitHub Desktop.
Save kavimaluskam/7818ea1687f81c95b4eb2498ad791b1e to your computer and use it in GitHub Desktop.
Cheat sheet for Kafka Console Producer
# Enter Kafka Shell Client
make kafka-shell
# Assign topic name in variable
TOPIC=test
# Producer for console text input
kafka-console-producer --topic=$TOPIC --broker-list=$BROKERS
###############################################
# You will then enter console input mode, #
# each newline will emit a message to Kafka. #
# #
# Ctrl + C to exit when input is done. #
###############################################
# Exit Docker when console producer is done
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment