Application instructions:
The graphical Web is often more intuitive than the command line, and Kafka-Manager is an open source project from Yahoo. The Web interface is easy to use and easy to install.
Installation environment:
Specific installation:
1. Download the compiled ZIP package
Download link: download.csdn.net/download/da…
Note: Compile time is long, download the compiled package can be used directly.
[root@server-1 ~]# unzip kafka-manager-1.3.3.15.zip -d /opt/ / unzip kafka-manager-1.3.3.15.zip
If you need to compile and install it yourself, go to Github and download it: github.com/yahoo/kafka…
2. Edit the configuration file
Go to the conf directory of kafka-manager and edit application.conf
Save the Settings and exit.
3. Start the kafka – manager
Switch the directory to the bin directory
Start kafka-Manager from the background
1 | [root@server-1 bin]``# nohup ./kafka-manager & |
---|
The default kafka-manager port is 9000. If you need to change the port, add http.port=… Or add it in the following format on the command line:
1 | [root@server-1 bin]``# nohup ./kafka-manager -Dhttp.port=9999 |
---|
If the ZooKeeper cluster is not modified in the configuration file, enter the following information in the command line interface:
1 | [root@server-1 bin]``# nohup ./kafka-manager -Dhttp.port=9999 - Dkafka - manager. Zkhosts = 192.168.1.21:2181192168 1.22:2181192168 1.23:2181 |
---|
After the port is started, check that the port is started.
4. Log in to the Web UI
Enter http://192.168.1.21:9000 in the browser, and perform the following operations to add Kafka cluster information and zooKeeper
Creating a Topic, deleting a Topic, and so on can be done in a GRAPHICAL interface. Details are omitted.