檢視叢集中kafka的Version(版本)
阿新 • • 發佈:2019-02-01
How to find the kafka version in linux
如何在linux系統下檢視kafka的版本。
There is nothing like kafka
--version
at this point. So you should either check the version from yourkafka/libs/
folder
or you can run
find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
from your kafka folder (and it will do the same for you). It will return you something like kafka_2.9.2-0.8.1.1.jar.asc
0.8.1.1
is
your kafka version.
這裡沒有類似 kafka -version 的檢視方法,所以你得檢視kafka/libs/的資料夾或者執行
find ./libs/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
當然,也可以直接在根目錄下查詢,即
find / -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
親測:
這裡 2.11是scala版本 0.8.2.1是kafka版本
翻譯出處:http://stackoverflow.com/questions/27606065/how-to-find-the-kafka-version-in-Linux