Producing data to Kafka topic
To produce data to Kafka topics, you create a property file, ensure that its permissions are set restrictively, list all the topics that the Machine User has access to, and produce a text message to the Kafka topic.
If the output of the command above contains only INFO
lines and no
ERROR
lines, it indicates that data was produced correctly to
the Kafka topic.
In the next section, you use the kafka-console-consumer
command to
verify the contents of the Kafka topic.