Categories
DevOps

How to determine Kafka version using command-line utilities

Determine Kafka version using command-line utilities.

Determine Kafka version by checking runtime class.

$ /opt/kafka/kafka/bin/kafka-run-class.sh kafka.Kafka --version
2.8.0 (Commit:ebb1d6e21cc92130)

Determine Kafka version by checking used library.

$ ls /opt/kafka/kafka/libs/kafka_*.jar | sort -r | head -1
/opt/kafka/kafka/libs/kafka_2.13-2.8.0.jar

It is Kafka 2.8.0 using Scala 2.13.