In the previous article “Installing Kafka on Linux”, we covered how to install Kafka on Linux, how to start/stop Kafka, and how to create posts and generate messages and consume messages. This article introduces the installation and use of Kafka Manager

Kafka-manager is an apache-Kafka management tool written in Scala, so you can operate in a Web page.

♛ 1 download

Download: github.com/yahoo/kafka…

Wget HTTP: / / https://github.com/yahoo/kafka-manager/archive/2.0.0.2.zip

If Github visits slower friends, you can also download the compiled version. Link: pan.baidu.com/s/1SqJoVlWP… Extraction code: 9SRz

If it is to download baidu net disk zip package, you can directly jump to the fourth step

♛ 2 decompression

Unzip 2.0.0.2. Zip

Kafka-manager-2.0.0.2 is generated after decompression

Compile ♛ 3

./sbt clean dist

“This may take some time”, I need to download some JAR packages, my virtual machine network speed is very slow, for a time I thought my card was dead… The wait was more than 40 minutes.

♛ 4 configuration

Open the application.conf file in the decompressed conf directory and modify the configuration information as follows:

Kafka - manager. Zkhosts = "192.168.1.22:2181192168 1.23:2181192168 1.24:2181"

Kafka – manager. Zkhosts = “192.168.1.22:2181192168 1.23:2181192168 1.24:2181”

♛ 5 start

In the unzipped directory, use the following command to start kafka-manager.

bin/kafka-manager

The default port is 9000. You can also specify the configuration file and port by using the following command:

bin/kafka-manager -Dconfig.file=/path/to/application.conf -Dhttp.port=9000

♛ 6 Effect picture

To create a Cluster: click [Cluster] > [Add Cluster] to open the following interface for adding a Cluster: Enter the name of the Cluster (such as kafka-cluster-1) and the address of the Zookeeper server (such as localhost:2181). Select the closest Kafka version as shown below:

After a new Cluster is created, it can be used normally.

About the author: Focus on basic platform project development. If you have any questions or suggestions, please feel free to comment! Copyright notice: The copyright of this article belongs to the author and the blog garden, welcome to reprint, but without the consent of the author must retain this statement, and give the original text link in a prominent place on the page of the article. For the record: all comments and messages will be answered as soon as possible. You are welcome to correct your mistakes and make progress together. Or direct private message I support the blogger: if you think the article is helpful to you, you can click on the lower right corner of the article [recommendation]. Your encouragement is the author to adhere to the original and continuous writing of the biggest power! \