Last active
October 12, 2020 03:06
-
-
Save yangl/73a659f8bb03eca8c42a to your computer and use it in GitHub Desktop.
kafka-manager使用指南 https://github.com/yahoo/CMAK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
默认使用jdk1.8编译运行的,如果要使用jdk1.7则在build.sbt中添加如下指定编译jdk版本: | |
javacOptions ++= Seq("-source", "1.7", "-target", "1.7") | |
sbt clean dist | |
https://github.com/yahoo/CMAK | |
解压kafka-manager-VERSION.zip,然后用下边启动脚本启动即可,不用再配置任何参数、hosts等 | |
注意:由于编译时用的jdk1.7,所以运行时也要拿1.7来跑,在Add Cluster后zk上应该会新建有kafka-manager节点。 | |
如果要启动basic认证,启用conf/application.conf下的basicAuthentication.enabled=true即可,并修改下边的用户名、密码! | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pgrep -f kafka-manager|xargs kill -9 | |
rm -f RUNNING_PID | |
sleep 3 | |
nohup ./bin/cmak -Dhttp.port=8010 -Dhttp.address=10.10.82.176 -DZK_HOSTS="10.10.82.167:9181,10.10.30.207:9181,10.10.82.180:9181" > ./logs/application.log 2>&1 & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment