c
[root@Darian1 software]# yum install unzip
Is this ok [y/d/N]: y
完毕!
[root@Darian1 software]#
[root@Darian1 software]# cd kafka-manager-master/conf/
[root@Darian1 conf]# vim application.conf
#kafka-manager.zkhosts="kafka-manager-zookeeper:2181"
kafka-manager.zkhosts="168.40.128:2181,192.168.40.129:2181,192.168.40.131:2181"
[root@Darian1 software]# yum install unzip
Is this ok [y/d/N]: y
完毕!
[root@Darian1 software]#
[root@Darian1 software]# cd kafka-manager-master/conf/
[root@Darian1 conf]# vim application.conf
#kafka-manager.zkhosts="kafka-manager-zookeeper:2181"
kafka-manager.zkhosts="168.40.128:2181,192.168.40.129:2181,192.168.40.131:2181"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
yum安装sbt(因为kafka-manager需要sbt编译)
c
[root@Darian1 kafka-manager-1.3.3.7]# curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
[root@Darian1 kafka-manager-1.3.3.7]# sudo mv bintray-sbt-rpm.repo /etc/yum.repos.d/
[root@Darian1 kafka-manager-1.3.3.7]# sudo yum install sbt
完毕!
[root@Darian1 kafka-manager-1.3.3.7]# curl https://bintray.com/sbt/rpm/rpm > bintray-sbt-rpm.repo
[root@Darian1 kafka-manager-1.3.3.7]# sudo mv bintray-sbt-rpm.repo /etc/yum.repos.d/
[root@Darian1 kafka-manager-1.3.3.7]# sudo yum install sbt
完毕!
1
2
3
4
5
2
3
4
5
2)编译kafka-manager
[admin@node21 kafka-manager-1.3.3.18]$ ./sbt clean dist
[admin@node21 kafka-manager-1.3.3.18]$ ./sbt clean dist
1
c
Waiting for lock on /root/.sbt/boot/sbt.boot.lock to be available...
Waiting for lock on /root/.sbt/boot/sbt.boot.lock to be available...
1
waiting 的话,直接 kill 相应的 sbt 命令
c
[root@Darian1 kafka-manager-1.3.3.7]# vim conf/application.conf
kafka-manager.zkhosts="192.168.40.128:2181"
[root@Darian1 kafka-manager-1.3.3.7]# vim conf/application.conf
kafka-manager.zkhosts="192.168.40.128:2181"
1
2
3
2
3
启动zk集群,kafka集群,再启动kafka-manager服务。
bin/kafka-manager 默认的端口是9000,可通过 -Dhttp.port,指定端口; -Dconfig.file=conf/application.conf指定配置文件:
[admin@node21 kafka-manager-1.3.3.18]$ nohup bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port=8080 &
[admin@node21 kafka-manager-1.3.3.18]$ nohup bin/kafka-manager -Dconfig.file=conf/application.conf -Dhttp.port=8080 &
1
Kafka monitor
Kafka offset monitor
Kafka -manage