环境准备

kafka

http://kafka.apache.org/downloads.html

zookeeper

http://zookeeper.apache.org/releases.html

kafka-eagle

http://download.kafka-eagle.org/
安装使用(默认已正常安装JAVA运行环境)

安装与配置

  1. wget https://github.com/smartloli/kafka-eagle-bin/archive/refs/tags/v2.0.7.tar.gz
  2. tar zxvf v2.0.7.tar.gz
  3. tar zxvf kafka-eagle-bin-2.0.7/efak-web-2.0.7-bin.tar.gz
  4. rm -rf kafka-eagle-bin-*
  5. export KE_HOME=$(pwd)/efak-web-2.0.7
  6. export PATH=$PATH:$KE_HOME/bin
  7. vim efak-web-2.0.7/conf/system-config.properties
  8. # 修改zookeeper配置
  9. efak.zk.cluster.alias=cluster1,cluster2
  10. cluster1.zk.list=tdn1:2181,tdn2:2181,tdn3:2181
  11. cluster2.zk.list=xdn10:2181,xdn11:2181,xdn12:2181
  12. # 屏蔽sqlite,使用mysql数据库,创建数据库即可,启动服务会自动建表
  13. efak.driver=com.mysql.cj.jdbc.Driver
  14. efak.url=jdbc:mysql://127.0.0.1:3306/ke?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
  15. efak.username=root
  16. efak.password=123456
  17. #启动
  18. ./efak-web-2.0.7/bin/ke.sh start
  19. 通过http://127.0.0.1:8048/即可访问