CmdID

CmdID / Commands

kcat

Apache Kafka producer and consumer tool. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Consume messages starting with the newest offset

kcat -C -t topic -b brokersIdentify

Consume messages starting with the oldest offset and exit after the last message is received

kcat -C -t topic -b brokers -o beginning -eIdentify

Consume messages as a Kafka consumer group

kcat -G group_id topic -b brokersIdentify

Publish message by reading from stdin

echo message | kcat -P -t topic -b brokersIdentify

Publish messages by reading from a file

kcat -P -t topic -b brokers path/to/fileIdentify

List metadata for all topics and brokers

kcat -L -b brokersIdentify

List metadata for a specific topic

kcat -L -t topic -b brokersIdentify

Get offset for a topic/partition for a specific point in time

kcat -Q -t topic:partition:unix_timestamp -b brokersIdentify