Kafka - kafka-avro-console-producer utility

Kafka Commit Log Messaging Process

About

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.

Example

Producer

  • Start the REPL and define the schema
kafka-avro-console-producer \
  --broker-list kafkahost:29092 --topic bar \
  --property value.schema='{"type":"record","name":"myrecord","fields":[{"name":"f1","type":"string"}]}'
  • Insert data that conform to the schema
{"f1": "value1"}
{"f1": "value2"}
{"f1": "value3"}





Discover More
Kafka Commit Log Messaging Process
Kafka - Console

The kafka application comes with utilities. This console application permits to read and write data from the console. : A consumer command line to read data from a Kafka topic and write it to...
Kafka Commit Log Messaging Process
Kafka - Producer (Write / Input)

A Kafka producer is an object that consists of: a pool of buffer space that holds records that haven't...
Kafka Commit Log Messaging Process
Kafka - Schema Registry

schema registry Schema registry is recommended if you plan to use Avro for a data format because it can help you with: serialization and schema evolution. with schema knowledge the Avro...



Share this page:
Follow us:
Task Runner