kafka-console-producer

Learn how to use the kafka-console-producer tool.

This tool is used to write messages to a topic. It is typically not as useful as the console consumer, but it can be useful when the messages are in a text based format. In general, the usage will be something like:

cat [FILE] | kafka-console-producer --broker-list [HOST1:PORT1] --topic test