kafkap is a Kafka CLI for sending message (body & headers) on a kafka topic.
- Make sure to dispose of golang SDK
- install librdkafka v0.11.5 or later:
# Install the Confluent public key
wget -qO - https://packages.confluent.io/deb/5.0/archive.key | sudo apt-key add -
# Add the repository to your /etc/apt/sources.list
sudo add-apt-repository "deb [arch=amd64] https://packages.confluent.io/deb/5.0 stable main"
# update apt cache and install librdkafka-dev
sudo apt-get update && sudo apt-get install librdkafka-dev
- clone repo in $GOPATH/src/ and build kafkap
make setup
make build
Run kafkap
for usage.
- based on confluent-kafka-go examples.
- check out https://github.com/mouminoux/kafkacli for kafka CLI consumer