Questions tagged [kafkacat]

Kafkacat is a generic non-JVM producer and consumer for Apache Kafka >= 0.8

From the kafkacat GitHub page:

kafkacat is a generic non-JVM producer and consumer for Apache Kafka >=0.8, think of it as a netcat for Kafka.

In producer mode kafkacat reads messages from stdin, delimited with a configurable delimiter (-D, defaults to newline), and produces them to the provided Kafka cluster (-b), topic (-t) and partition (-p).

In consumer mode kafkacat reads messages from a topic and partition and prints them to stdout using the configured message delimiter.

There's also support for the Kafka >=0.9 high-level balanced consumer, use the -G switch and provide a list of topics to join the group.

kafkacat also features a Metadata list (-L) mode to display the current state of the Kafka cluster and its topics and partitions.

Supports Avro message deserialization using the Confluent Schema-Registry, and generic primitive deserializers (see examples below).

kafkacat is fast and lightweight; statically linked it is no more than 150Kb.

31 questions
0
votes
1 answer

Use kafkacat to see header but throws % ERROR: Unsupported formatter: %h

I use kafkacat to see the header, but it returns % ERROR: Unsupported formatter: %h My kafkacat is 1.3, installed by apt-get install kafkacat The full command I use is: kafkacat -b localhost:9092 -t dlq_file_sink_03 -C -o-1 -c1 \ -f '\nKey (%K…
HungUnicorn
  • 1,946
  • 2
  • 12
  • 28
1 2
3