kafka-manager

The attachment is the kafka-manager compiled by myself. Due to the network and other reasons, the sbt compilation is very long. Provided to those in need, the attachment size is limited, please go to the cloud disk to download
Link


: https://pan.baidu.com/s/1qZNLVcg Password: hmm6 Below is a brief description of the installation and configuration steps (because it is a later supplementary note, probably That's it, not necessarily accurate)
1 Download kafka-manager
2 Download sbt and configure the sbt environment
2.1 Add in sbtconfig.txt in the config directory of sbt (the company network needs to add a proxy)

-Dsbt.ivy.home=E:/AirPortal/sbt /.ivy2
-Dsbt.global.base=E:/AirPortal/sbt/.sbt
-Dsbt.repository.config=E:/AirPortal/sbt/conf/repo.properties

-Dhttp.proxyHost=*.*.*.*
-Dhttp.proxyPort=**
-Dhttp.proxyUser=****
-Dhttp.proxyPassword=****

-Dhttps.proxyHost=*.*.*.*
-Dhttps.proxyPort=**
-Dhttps.proxyUser=* *****
-Dhttps.proxyPassword=*****

3. Compile, install
and decompress kafka-manager
Enter the kafka-manager directory in the cmd window and
execute ./sbt clean dist
. If the environment variable of sbt is not configured,
you can use the full path such as E:\develop\sbt\bin\sbt clean dist
After the compilation is successful, it will be in E:\workspace\kafka -manager-1.3.3.14\target\universal directory to generate
kafka-manager-1.3.3.14.zip

4. Modify the configuration
Unzip kafka-manager-1.3.3.14.zip to the appropriate directory
4.1 Add the zookeeper configuration and modify the startup port
Modify conf /application.conf
kafka-manager.zkhosts="10.79.8.118:2181"
http.port=8080 The
default port is 9000. You can also modify the port through startup parameters
/kafka-manager -Dconfig.file=conf/application.conf -Dhttp. port=9001
4.2 jmx configuration
modification kafka/bin/kafka-server-start.sh
add export JMX_PORT="9990"
such as:
if [ "x$KAFKA_HEAP_OPTS" = "x" ]; then
    export KAFKA_HEAP_OPTS="-Xmx1G -Xms1G"
    export JMX_PORT="9990"
fi
Modify kafka/bin/kafka-run-class.sh and
add -Djava.rmi.server.hostname=*.*.*.*
such as:
# JMX settings
if [ -z "$KAFKA_JMX_OPTS" ]; then
  KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=*.*.*.* -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false "
fi

open kafka machine firewall
-A INPUT -m state --state NEW -m tcp -p tcp -s *.*.*.* --dport 1024: -j ACCEPT
explains that jmx needs to specify the JMX_PORT and rmi ports (the same as JMX_PORT after jdk7) and a tcp port (>1024).


Start
nohup on linux /opt/kafka-manager/kafka-manager-1.3.3.14/bin/kafka-manager -Dhttp.port=8080 &

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326062271&siteId=291194637