kafkacat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
kafkacat: command not found
or when using sudo you get the following error message
sudo: kafkacat: command not found
Solutions to kafkacat: command not found
How To Fix kafkacat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu kafkacat is provided by kafkacat package.
kafkacat is:
kafkacat is a generic non-JVM producer and consumer for Apache Kafka 0.8, think of it as a netcat for Kafka.
In producer mode kafkacat reads messages from stdin, delimited with a configurable delimiter and produces them to the provided Kafka cluster, topic and partition. In consumer mode kafkacat reads messages from a topic and partition and prints them to stdout using the configured message delimiter.
kafkacat also features a Metadata list mode to display the current state of the Kafka cluster and its topics and partitions.
To fix this problem, we can install more using the command below.
sudo apt-get -y install kafkacat
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install kafkacat.
sudo apt -y install kafkacat
Or if you have aptitude installed you can use the following command.
sudo aptitude install kafkacat
Summary
In this tutorial we learn how to fix kafkacat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.