kafka-manager搭建
2.0版本 --jdk8
kafka-manager 百度云盘下载地址
链接:https://pan.baidu.com/s/1Vu2BcEQyCL7MuAydu2Mc5A
提取码:0aw3
修改配置文件./conf/application.conf
# 默认是localhost,将zkhosts改为自己zk集群的hosts
kafka-manager.zkhosts="hdp05.ultiwill.com:2181,hdp06.ultiwill.com:2181"
启动
nohup ./bin/kafka-manager -Dhttp.port=9997 2>&1 &
使用浏览器登录
设置SASL成功会看到kafka manager 日志打印如下信息
监控信息
topic 相关信息
集群相关信息
broker相关信息
开机自启kafka-manager
/etc/init.d/starKM目录下
#!/bin/bash # # chkconfig: 2345 55 25 # description:start ES instance host=$(hostname) time=$( date '+%Y-%m-%d %H:%M:%S') echo "$@ $host $time elasticsearch-6.1.0" >> /root/powerOn.log su - elastic -c '/usr/local/elasticsearch-6.1.0/bin/elasticsearch -d' time=$( date '+%Y-%m-%d %H:%M:%S') echo "$@ $host $time cerebro " >> /root/powerOn.log su - elastic -c "nohup /usr/local/cerebro-0.7.2/bin/cerebro >/dev/null &" time=$( date '+%Y-%m-%d %H:%M:%S') echo "$@ $host $time kibana" >> /root/powerOn.log su - elastic -c "nohup /usr/local/kibana-6.1.0-linux-x86_64/bin/kibana >/dev/null &" time=$( date '+%Y-%m-%d %H:%M:%S') echo "$@ $host $time kafka-manager" >> /root/powerOn.log num=$(netstat -ntlp |grep 9997 |wc -l) RUNNING_FILE=/usr/local/kafka-manager-1.3.3.7/RUNNING_PID if [[ $num -eq 0 ]];then if [ -f $RUNNING_FILE ];then rm $RUNNING_FILE fi nohup /usr/local/kafka-manager-1.3.3.7/bin/kafka-manager -Dconfig.file=/usr/local/kafka-manager-1.3.3.7/conf/application.conf -Dhttp.port=9997 >/dev/null 2>&1 & fi
原文链接:https://blog.csdn.net/yangshengwei230612/article/details/107073837/