From f64c69329931601b2f1998635cc8ceb88acabcc3 Mon Sep 17 00:00:00 2001 From: Maksymilian Babarowski Date: Sat, 8 Oct 2022 18:14:19 +0200 Subject: [PATCH] kcat: Rename kafkacat to kcat (#8757) --- pages/common/kafkacat.md | 36 ------------------------------------ pages/common/kcat.md | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 pages/common/kafkacat.md create mode 100644 pages/common/kcat.md diff --git a/pages/common/kafkacat.md b/pages/common/kafkacat.md deleted file mode 100644 index 1520bbf1e..000000000 --- a/pages/common/kafkacat.md +++ /dev/null @@ -1,36 +0,0 @@ -# kafkacat - -> Apache Kafka producer and consumer tool. -> More information: . - -- Consume messages starting with the newest offset: - -`kafkacat -C -t {{topic}} -b {{brokers}}` - -- Consume messages starting with the oldest offset and exit after the last message is received: - -`kafkacat -C -t {{topic}} -b {{brokers}} -o beginning -e` - -- Consume messages as a Kafka consumer group: - -`kafkacat -G {{group_id}} {{topic}} -b {{brokers}}` - -- Publish message by reading from stdin: - -` echo {{message}} | kafkacat -P -t {{topic}} -b {{brokers}}` - -- Publish messages by reading from a file: - -`kafkacat -P -t {{topic}} -b {{brokers}} {{path/to/file}}` - -- List metadata for all topics and brokers: - -`kafkacat -L -b {{brokers}}` - -- List metadata for a specific topic: - -`kafkacat -L -t {{topic}} -b {{brokers}}` - -- Get offset for a topic/partition for a specific point in time: - -`kafkacat -Q -t {{topic}}:{{partition}}:{{unix_timestamp}} -b {{brokers}}` diff --git a/pages/common/kcat.md b/pages/common/kcat.md new file mode 100644 index 000000000..c0c1c88fa --- /dev/null +++ b/pages/common/kcat.md @@ -0,0 +1,36 @@ +# kcat + +> Apache Kafka producer and consumer tool. +> More information: . + +- Consume messages starting with the newest offset: + +`kcat -C -t {{topic}} -b {{brokers}}` + +- Consume messages starting with the oldest offset and exit after the last message is received: + +`kcat -C -t {{topic}} -b {{brokers}} -o beginning -e` + +- Consume messages as a Kafka consumer group: + +`kcat -G {{group_id}} {{topic}} -b {{brokers}}` + +- Publish message by reading from stdin: + +` echo {{message}} | kcat -P -t {{topic}} -b {{brokers}}` + +- Publish messages by reading from a file: + +`kcat -P -t {{topic}} -b {{brokers}} {{path/to/file}}` + +- List metadata for all topics and brokers: + +`kcat -L -b {{brokers}}` + +- List metadata for a specific topic: + +`kcat -L -t {{topic}} -b {{brokers}}` + +- Get offset for a topic/partition for a specific point in time: + +`kcat -Q -t {{topic}}:{{partition}}:{{unix_timestamp}} -b {{brokers}}`