kafka manage web

kafka manage web

  1. kafka manage install

    1
    2
    3
    4
    5
    [root@10 app]# git clone https://github.com/yahoo/kafka-manager.git
    [root@10 app]# cd kafka-manager/
    [root@10 kafka-manager]# ./sbt /mnt/app/java clean dist
    or:
    [root@10 kafka-manager]# JAVA_HOME=/mnt/app/java PATH=${JAVA_HOME}/bin:$PATH ./sbt -java-home /mnt/app/java clean dist
  2. 解压安装

    1
    2
    3
    4
    [root@10 kafka-manager]# cp target/universal/kafka-manager-1.3.3.4.zip .
    [root@10 kafka-manager]# unzip kafka-manager-1.3.3.4.zip
    [root@10 kafka-manager]# mv kafka-manager-1.3.3.4 /mnt/app/kafka-manager
    [root@10 kafka-manager]# chown -R wisdom.wisdom /mnt/app/kafka-manager
  3. 配置

    1
    2
    3
    4
    5
    6
    7
    8
    [root@10 app]# su - wisdom
    [wisdom@10 ~]$ vim /mnt/app/kafka-manager/conf/application.conf
    kafka-manager.zkhosts="10.0.3.65:2181"
    ... ...
    basicAuthentication.enabled=true
    basicAuthentication.username="admin"
    basicAuthentication.password="admin"
    basicAuthentication.realm="Kafka-Manager"
  4. 启动

    1
    [wisdom@10 ~]$ /mnt/app/kafka-manager/bin/kafka-manager &
  5. 访问

    1
    http://{IP}:9000