kafka-eagle efak

2024-11-08

efak监控kafka运行情况。

1、下载
https://www.kafka-eagle.org/#download
https://github.com/smartloli/kafka-eagle-bin/archive/v3.0.2.tar.gz
2、mysql创建efakdb 和efakuser
3、cat << EOG > ins_efak.sh
#!/bin/sh
file=kafka-eagle-bin-3.0.2.tar.gz
item=efak-web-3.0.2

wget -c https://github.com/smartloli/kafka-eagle-bin/archive/v3.0.2.tar.gz
tar zxf $file
tar zxf kafka-eagle-bin-3.0.2/efak-web-3.0.2-bin.tar.gz -C /opt

sed -i '/KE_HOME/d' ~/.bash_profile;

cat << EOF >> ~/.bash_profile
export KE_HOME=/jesong/${item}
export PATH=\$PATH:\${KE_HOME}/bin
EOF

cd /opt/${item}
cat << EOF > start.sh
sh bin/ke.sh start
EOF
cat << EOF > stop.sh
ps -ef|grep ${item}|grep -v grep|awk '{print \$2}'|xargs kill -9
EOF

source ~/.bash_profile
EOG

4、配置conf/system-config.properties
######################################
# multi zookeeper & kafka cluster list
# Settings prefixed with 'kafka.eagle.' will be deprecated, use 'efak.' instead
######################################
efak.zk.cluster.alias=cluster1
cluster1.zk.list=172.30.91.10:2181,172.30.90.92:2181,172.30.90.93:2181/hwkafka
#cluster2.zk.list=xdn10:2181,xdn11:2181,xdn12:2181

######################################
# kafka offset storage
######################################
cluster1.efak.offset.storage=kafka

######################################
# kafka mysql jdbc driver address
######################################
efak.driver=com.mysql.cj.jdbc.Driver
efak.url=jdbc:mysql://localhost:3306/efakdb?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
efak.username=efakuser
efak.password=password2

5、http://ip:8048
admin默认密码123456
mysql> select * from ke_users;
update ke_users set password='password2';

分类:Linux | 标签: |

相关日志

评论被关闭!