Install Kafkacat On A Debian, Ubuntu, Kali, Raspbian And MacOS
Maintainer: Vincent Bernat
Email: [email protected] .
Website: https://github.com/edenhill/kafkacat
Section: net
Install kafkacat
-
Debian
apt-get install kafkacat
Click to copy -
Ubuntu
apt-get install kafkacat
Click to copy -
Kali Linux
apt-get install kafkacat
Click to copy -
Raspbian
apt-get install kafkacat
Click to copy -
macOS
brew install kafkacat
Click to copy
Apache Kafka producer and consumer tool.
How to use kafkacat?
Below are few example commands for kafkacat that you can use in the terminal.
Consume messages starting with the newest offset:kafkacat -C -t topic -b brokers
Click to copyConsume messages starting with the oldest offset and exit after the last message is received:kafkacat -C -t topic -b brokers -o beginning -e
Click to copyConsume messages as a Kafka consumer group:kafkacat -G group_id topic -b brokers
Click to copyPublish message by reading from stdin:echo message | kafkacat -P -t topic -b brokers
Click to copyPublish messages by reading from a file:kafkacat -P -t topic -b brokers path/to/file
Click to copyList metadata for all topics and brokers:kafkacat -L -b brokers
Click to copyList metadata for a specific topic:kafkacat -L -t topic -b brokers
Click to copyGet offset for a topic/partition for a specific point in time:kafkacat -Q -t topic}:partition:unix_timestamp -b brokers
Click to copy
Installation of latest kafkacat command is available for Debian, Ubuntu, Kali, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2023 latest package from the repository and install it in your computer/server.