Last active
January 30, 2019 09:58
-
-
Save kavimaluskam/7818ea1687f81c95b4eb2498ad791b1e to your computer and use it in GitHub Desktop.
Cheat sheet for Kafka Console Producer
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 | |
# 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