kafka-eagle是一个界面优美的监控网址,那么该如何配置?
1.修改/opt/module/kafka/bin/kafka-server-start.sh命令,并分发到集群的其他服务器上
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G" fi 为 if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then export KAFKA_HEAP_OPTS="-server -Xms2G -Xmx2G -XX:PermSize=128m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=8 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70" export JMX_PORT="9999" #export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G" fi
2.安装
官方网址:EFAK
将安装包解压到/opt/module目录下
修改配置文件 /opt/module/eagle/conf/system-config.properties 修改以下命令
###################################### # multi zookeeper & kafka cluster list ###################################### kafka.eagle.zk.cluster.alias=cluster1 cluster1.zk.list=hadoop102:2181,hadoop103:2181,hadoop104:2181/kafka ###################################### # offset保存在kafka cluster1.kafka.eagle.offset.storage=kafka ###################################### # kafka metrics, 15 days by default # 是否启动监控图表 kafka.eagle.metrics.charts=true kafka.eagle.metrics.retain=15 ###################################### # 配置mysql连接 kafka.eagle.driver=com.mysql.jdbc.Driver kafka.eagle.url=jdbc:mysql://hadoop102:3306/ke?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull kafka.eagle.username=root kafka.eagle.password=123456
3.加入环境变量
# kafkaEagle export KE_HOME=/opt/module/eagle export PATH=$PATH:$KE_HOME/bin
4.运行(主要记住账号密码)
[example@hadoop102 eagle]$ ke.sh start Welcome to __ __ ___ ____ __ __ ___ ______ ___ ______ __ ______ / //_/ / | / __/ / //_/ / | / ____/ / | / ____/ / / / ____/ / ,< / /| | / /_ / ,< / /| | / __/ / /| | / / __ / / / __/ / /| | / ___ | / __/ / /| | / ___ | / /___ / ___ |/ /_/ / / /___ / /___ /_/ |_| /_/ |_|/_/ /_/ |_| /_/ |_| /_____/ /_/ |_|____/ /_____//_____/ Version 1.4.5 -- Copyright 2016-2020 ******************************************************************* * Kafka Eagle Service has started success. * Welcome, Now you can visit 'http://192.168.10.102:8048/ke' * Account:admin ,Password:123456 ******************************************************************* *ke.sh [start|status|stop|restart|stats] *https://www.kafka-eagle.org/ *******************************************************************
5.进入网站http://192.168.10.102:8048/ke
6.输入账号密码进入即可
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)