kcat: Rename kafkacat to kcat (#8757)

pull/1/head
Maksymilian Babarowski 2022-10-08 18:14:19 +02:00 committed by GitHub
parent 155864b33e
commit f64c693299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 36 deletions

View File

@ -1,36 +0,0 @@
# kafkacat
> Apache Kafka producer and consumer tool.
> More information: <https://github.com/edenhill/kafkacat>.
- 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}}`

36
pages/common/kcat.md Normal file
View File

@ -0,0 +1,36 @@
# kcat
> Apache Kafka producer and consumer tool.
> More information: <https://github.com/edenhill/kcat>.
- 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}}`