Correspondence between Kafka and Zookeeper versions

learn

for example:

kafka_2.11-1.1.1.jar package

Among them, 2.11 represents the Scala version, because the Kafka server-side code is completely written in Scala language. "-" The version information of kafka represented by 1.1.1 behind. Following a basic principle, the Kafka client version and server version should be consistent, otherwise some problems may be encountered.
(It has nothing to do with the following, just for understanding)

version correspondence

You can confirm the corresponding zookeeper version according to the source package or installation package

Kafka installation package

For example, the kafka installation package:

kafka_2.11-1.1.1.tgz

After decompressing under Linux, enter the libs directory to view:

cd libs/

insert image description here
The zookeeper version 3.4.10 is supported.

In the same way, you can also double-click the installation package directly under windows:
insert image description here
insert image description here

Kafka source package

kafka-1.1.1-src.tgz

(Not decompressed), double-click directly to view:
the path is:

kafka-1.1.1-src/grade/dependencies.gradle

insert image description here
insert image description here
insert image description here
insert image description here
Rely on zookeeper version 3.4.10~

Guess you like

Origin blog.csdn.net/qq_36256590/article/details/132181427
Recommended