kafka提供的数据接口,是通用的JMX接口,通过这个接口就可以对外暴露性能指标数据
安装
【1】配置JMX环境变量,修改所有节点的bin/kafka-server-start.sh
添加
export JMX_PORT=9988;
【2】重启所有节点的kafka
【3】查看9988端口被kafka监听了
netstat -anp|grep 9988
【4】上传kafka-eagle包到hadoop101节点
【5】解压
【6】再次解压,得到efak-web-2.1.0
【7】配置kafka eagle的环境变量
vim /etc/profile
添加
export KE_HOME=/opt/module/kafka-eagle-bin-2.1.0/efak-web-2.1.0
export PATH=$PATH:$KE_HOME/bin
生效
source /etc/profile
【8】修改配置文件 conf/system-config.properties
efak.zk.cluster.alias=cluster1
cluster1.zk.list=hadoop101:2181,hadoop102:2181,hadoop103:2181
将cluster2相关的配置注释
修改jdbc连接
【9】启动
bin/ke.sh start
【10】开启8084防火墙端口
firewall-cmd --zone=public --add-port=8048/tcp --permanent
firewall-cmd --reload