Kafka Producer CLI
The Kafka console producer CLI, kafka-console-producer is used to read data from standard input and publish it to Kafka.
References
Flashcards
From the CLI, publish data to the people topic::kafka-console-producer --bootstrap-server localhost:9092 --topic people and {"name":"Stewie", "show": "Family Guy"}
From the CLI, publish some pets with an explicit parsed key separated by a pipe character:: kafka-console-producer --bootstrap-server localhost:9092 --topic pets --property "parse.key=true" --property "key.separator=|"