The kafka-avro-console-producer is a producer command line to read data from standard input and write it to a Kafka topic in an avro format.
This console uses the Avro converter with the Schema Registry in order to properly write the Avro data schema.
kafka-avro-console-producer \
--broker-list kafkahost:29092 --topic bar \
--property value.schema='{"type":"record","name":"myrecord","fields":[{"name":"f1","type":"string"}]}'
{"f1": "value1"}
{"f1": "value2"}
{"f1": "value3"}