kafkacat — generic producer and consumer for Apache Kafka
Contents
Description
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 ( -P ), kafkacat reads messages from stdin, delimited with a configurable delimeter and
produces them to the provided Kafka cluster, topic and partition. In consumer mode ( -C ), kafkacat reads
messages from a topic and partition and prints them to stdout using the configured message delimiter.
If neither -P or -C are specified kafkacat attempts to figure out the mode automatically based on
stdin/stdout tty types.
kafkacat also features a metadata list mode ( -L ), to display the current state of the Kafka cluster and
its topics and partitions.
Name
kafkacat — generic producer and consumer for Apache Kafka
See Also
For a more extensive help and some simple examples, run kafkacat with -h flag.
Debian December 09, 2014 KAFKACAT(1)
Synopsis
kafkacat-C | -P | -L-ttopic [-ppartition] -bbrokers [, ...] [-Ddelim] [-Kdelim] [-ccnt] [-Xlist]
[-Xprop=val] [-Xdump] [-ddbg [, ...]] [-q] [-v] [-Z] [specific options]
kafkacat-C [generic options] [-ooffset] [-e] [-O] [-u] [-J] [-ffmtstr]
kafkacat-P [generic options] [-zsnappy | gzip] [-p-1] [file [...]]
kafkacat-L [generic options] [-ttopic]
