Kafka Eagle 安装步骤整理
Kafka Eagle首页
Kafka Eagle Topic信息列表
Kafka Eagle Consumer信息展示
获取Kafka Eagle安装包
1.从网站直接下载
http://download.kafka-eagle.org/
2.从GitHub下载源码本地打包
https://github.com/smartloli/kafka-eagle.git
使用install会自动运行单元测试,添加跳过单元测试命令install ‘-Dmaven.test.skip=true’
到kafka-eagle-web\target目录下找到kafka-eagle-web-1.3.8-bin.tar.gz,与从网站直接下载的一样,也可自己改源码定制一些功能
部署Kafka Eagle到Linux
1.配置环境变量
修改当前用的base_profile
export KE_HOME=/home/shsnc/snc_product/kafka_eagle
export PATH=$PATH:$KE_HOME/bin
如果没有安装jdk的话也要配置jdk的环境变量,也可以去改全局环境变量/etc/profile,内容同上
2.修改配置文件
进入conf 修改配置文件system-config.properties
主要修改zk地址,数据库配置(启动项目时,会自动去创建表)
######################################
# multi zookeeper&kafka cluster list
######################################
kafka.eagle.zk.cluster.alias=cluster1
cluster1.zk.list=192.x.x.168:2181
######################################
# zk client thread limit
######################################
kafka.zk.limit.size=25
######################################
# kafka eagle webui port
######################################
kafka.eagle.webui.port=8048
######################################
# kafka offset storage
######################################
cluster1.kafka.eagle.offset.storage=kafka
#cluster2.kafka.eagle.offset.storage=zk
######################################
# enable kafka metrics
######################################
kafka.eagle.metrics.charts=false
kafka.eagle.sql.fix.error=false
######################################
# kafka sql topic records max
######################################
kafka.eagle.sql.topic.records.max=5000
######################################
# alarm email configure
######################################
kafka.eagle.mail.enable=false
kafka.eagle.mail.sa=alert_sa@163.com
kafka.eagle.mail.username=alert_sa@163.com
kafka.eagle.mail.password=mqslimczkdqabbbh
kafka.eagle.mail.server.host=smtp.163.com
kafka.eagle.mail.server.port=25
######################################
# alarm im configure
######################################
#kafka.eagle.im.dingding.enable=true
#kafka.eagle.im.dingding.url=https://oapi.dingtalk.com/robot/send?access_token=
#kafka.eagle.im.wechat.enable=true
#kafka.eagle.im.wechat.token=https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=xxx&corpsecret=xxx
#kafka.eagle.im.wechat.url=https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=
#kafka.eagle.im.wechat.touser=
#kafka.eagle.im.wechat.toparty=
#kafka.eagle.im.wechat.totag=
#kafka.eagle.im.wechat.agentid=
######################################
# delete kafka topic token
######################################
#kafka.eagle.topic.token=keadmin
######################################
# kafka sasl authenticate
######################################
cluster1.kafka.eagle.sasl.enable=false
cluster1.kafka.eagle.sasl.protocol=SASL_PLAINTEXT
cluster1.kafka.eagle.sasl.mechanism=PLAIN
#cluster1.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="kafka-eagle";
######################################
# kafka jdbc driver address
######################################
kafka.eagle.driver=com.mysql.jdbc.Driver
kafka.eagle.url=jdbc:mysql://192.x.x.168:3307/eagle?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
kafka.eagle.username=xxx
kafka.eagle.password=xxxxxx
3.启动Kafka Eagle
进入bin,执行命令 sh ke.sh start
4.登录Kafka Eagle
默认账号密码admin/123456 密码是明码,也可以直接到数据库看一下
登录地址为ip:8048 ,也可以通过配置文件修改端口
kafka.eagle.webui.port
5.使用手册地址
https://docs.kafka-eagle.org/