Kafka Manager is a kafka monitoring and management tool developed by Yahoo, project address: https://github.com/yahoo/kafka-manager
Install
Download the source code:
git clone https://github.com/yahoo/kafka-manager.git
Kafka Manager is developed in Scala and built via sbt (Simple Build Tool) (similar to Maven and Gradle).
compile
cd kafka-manager
./sbt clean dist
If it prompts "Download failed. Obtain the jar manually and place it at /Users/tongyufu/.sbt/launchers/0.13.9/sbt-launch.jar", the download of sbt-launch.jar fails, you can go to the Internet to search for 0.13.9 The version of sbt-launch.jar is downloaded separately and placed in ~/.sbt/launchers/0.13.9, or modify the ./kafka-manager/project/build.properties file and modify sbt.version=0.13.9 to sbt.version=0.13.17, and then re-execute the compile command.
When you see the following information, the compilation is successful.
[info] Your package is ready in /Users/tongyufu/develop/source/kafka/kafka-manager/target/universal/kafka-manager-1.3.3.17.zip
[info]
[success] Total time: 565 s, completed 2018-5-3 17:54:42
The successfully compiled file is in kafka-manager/target/universal/kafka-manager-1.3.3.17.zip, decompress the file.
configure
Edit kafka-manager-1.3.3.17/conf/application.conf,
#修改前
kafka-manager.zkhosts="kafka-manager-zookeeper:2181"
#修改成zookeeper的实际地址,多个地址使用逗号分隔
kafka-manager.zkhosts="127.0.0.1:2181"
start up
bin/kafka-manager
The default access port is 9000, you can specify the port and configuration file
bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port=8080
closure
kafka manager does not provide execution scripts and commands for shutdown operations. You can force the kafka manager process to be killed by the kill command. ProdServerStart is the process of Kafka Manager, kill the process, and delete the RUNNING_PID file in the root directory (sometimes this file will appear when the startup fails, resulting in an error message when restarting: This application is already running (Or delete /Users/tongyufu/develop/source /kafka/kafka-manager-1.3.3.17/RUNNING_PID file).).
kill 31543
rm -f RUNNING_PID