1. Download kafka-manager
git clone https://github.com/yahoo/kafka-manager.git
2. Configure the sbt mirror warehouse
Because kafka-manager is developed by Yahoo, it needs to rely on the external network for construction, and download the scala runtime jar. Due to the poor network environment, the construction takes a long time and is likely to fail. We can replace it with a foreign mirror repository and install it soon.
bogon:kafka-manager-1.3.3.17 lizhitao$ vim ~/.sbt/repositories
Add the following Alibaba Cloud Maven image content
[repositories] local aliyun: http: // maven.aliyun.com/nexus/content/groups/public/ central: http: // repo1.maven.org/maven2/
3. Build kafka-manager
./sbt clean dist
Enter the directory kafka-manager/target/universal
bogon:kafka-manager-1.3.3.17 lizhitao$ unzip kafka-manager-1.3.3.17.zip -d
/usr/local
4. Start kafka-manager
configure vim application.conf
...
kafka-manager.zkhosts="10.50.97.248:2181,10.50.60.183:2181,10.50.97.249:2181"
...
The default port of kafka-manager is 9000, you can specify the port through -Dhttp.port; -Dconfig.file=conf/application.conf specify the configuration file:
nohup bin/kafka-manager -Dconfig.file=conf/application.conf - Dhttp.port=8080 &
direct start
nohup bin/kafka-manager &