본문 바로가기

리눅스

[Kafka] Check the Kafka(Broker) ZooKeeper version

728x90

Check the Kafka(Broker), ZooKeeper version

Kafka(Broker) version

find /usr/share/java/kafka/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'

$ find /usr/share/java/kafka/ -name \*kafka_\* | head -1 | grep -o '\kafka[^\n]*'
kafka/kafka_2.13-7.0.0-ccs.jar

Zookeeper version

echo srvr | nc localhost 2181

$ echo srvr | nc localhost 2181
Zookeeper version: 3.6.3--6401e4ad2087061bc6b9f80dec2d69f2e3c8660a, built on 04/08/2021 16:35 GMT
Latency min/avg/max: 0/0.3503/3
Received: 4495
Sent: 4494
Connections: 3
Outstanding: 0
Zxid: 0x100000069
Mode: leader
Node count: 30
Proposal sizes last/min/max: 352/36/352
728x90