kafka监控界面
官网地址
https://www.kafka-eagle.org
下载地址
http://download.kafka-eagle.org/
安装文档
https://docs.kafka-eagle.org/2.env-and-install
安装部署
下载kafka-eagle安装包,将其解压到某一目录下,如果目录不存在则创建,如/opt/software
tar xf kafka-eagle-bin-1.4.7.tar.gz -C /opt/software/
cd /opt/software/kafka-eagle-bin-1.4.7
tar xf kafka-eagle-web-1.4.7-bin.tar.gz
mv kafka-eagle-web-1.4.7 kafka-eagle
配置环境变量
设置kafka-eagle目录
[root@nkafka1 Desktop]# cat /etc/profile | egrep -v "#|^$"
export KE_HOME=/opt/software/kafka-eagle //添加如下几行配置参数,因为采用rpm包安装的,所以jdk的目录在/usr/下面
export PATH=$PATH:$KE_HOME/bin
export JAVA_HOME=/usr/java/jdk1.8.0_251-amd64
立即生效
source /etc/profile
修改kafka-eagle配置文件
[root@nkafka1 Desktop]# cat /opt/software/kafka-eagle/conf/system-config.properties | egrep -v "#|^$"
kafka.eagle.zk.cluster.alias=cluster1
cluster1.zk.list=172.31.66.119:2181,172.31.66.120:2181,172.31.66.121:2181 //kafka集群信息
cluster1.kafka.eagle.broker.size=20
kafka.zk.limit.size=25
kafka.eagle.webui.port=8048
cluster1.kafka.eagle.offset.storage=kafka
cluster2.kafka.eagle.offset.storage=zk
kafka.eagle.metrics.charts=false
kafka.eagle.metrics.retain=15
kafka.eagle.sql.topic.records.max=5000
kafka.eagle.sql.fix.error=false
kafka.eagle.topic.token=keadmin
cluster1.kafka.eagle.sasl.enable=false
cluster1.kafka.eagle.sasl.protocol=SASL_PLAINTEXT
cluster1.kafka.eagle.sasl.mechanism=SCRAM-SHA-256
cluster1.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="kafka" password="kafka-eagle";
cluster1.kafka.eagle.sasl.client.id=
cluster1.kafka.eagle.sasl.cgroup.enable=false
cluster1.kafka.eagle.sasl.cgroup.topics=
cluster2.kafka.eagle.sasl.enable=false
cluster2.kafka.eagle.sasl.protocol=SASL_PLAINTEXT
cluster2.kafka.eagle.sasl.mechanism=PLAIN
cluster2.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="kafka" password="kafka-eagle";
cluster2.kafka.eagle.sasl.client.id=
cluster2.kafka.eagle.sasl.cgroup.enable=false
cluster2.kafka.eagle.sasl.cgroup.topics=
cluster3.kafka.eagle.ssl.enable=false
cluster3.kafka.eagle.ssl.protocol=SSL
cluster3.kafka.eagle.ssl.truststore.location=
cluster3.kafka.eagle.ssl.truststore.password=
cluster3.kafka.eagle.ssl.keystore.location=
cluster3.kafka.eagle.ssl.keystore.password=
cluster3.kafka.eagle.ssl.key.password=
cluster3.kafka.eagle.ssl.cgroup.enable=false
cluster3.kafka.eagle.ssl.cgroup.topics=
kafka.eagle.driver=org.sqlite.JDBC
kafka.eagle.url=jdbc:sqlite:/opt/software/kafka-eagle/db/ke.db //根据实际情况填写
kafka.eagle.username=root
kafka.eagle.password=www.kafka-eagle.org
启动kafka-eagle
[root@nkafka1 bin]# ls
ke.bat ke.sh
[root@nkafka1 bin]# pwd
/opt/software/kafka-eagle/bin
[root@nkafka1 bin]# chmod +x ke.sh
[root@nkafka1 bin]# ./ke.sh start
启动成功登陆相应的ip地址即可查看,用户名/密码:admin/123456