Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use kafka-manager

Shulou Source: shulou.com Published: 2022-06-01 01:44:25 09月22日 Update

This article will explain in detail how to use kafka-manager for you. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Yahoo's official github project: https://github.com/yahoo/kafka-manager

The compiled package is provided here, which can be used directly after download, and can be compiled without sbt.

Link: http://pan.baidu.com/s/1bQ3lkM password: c251

1. Upload the downloaded package to the linux directory for decompression

Unzip kafka-manager-1.3.0.7.zipmv kafka-manager-1.3.0.7 kafka-manager

2. Modify the configuration file

Modify zk configuration in application.conf

Vim kafka-manager/conf/application.conf modify configuration: kafka-manager.zkhosts= add configuration: http.port= (default 9000)

3. Since the use of kafkamanage is based on jdk8, install jdk8 first and simply download and decompress it.

4. To see the read, you need to enable JMX for the write speed. Modify kafka-server-start.sh and add a line: add JMX port 8999.

If ["x$KAFKA_HEAP_OPTS" = "x"]; then export KAFKA_HEAP_OPTS= "- Xmx1G-Xms1G" export JMX_PORT= "8999" fi

Note: each kafka broker needs to be modified. Restart the kafka after modification.

5. Start kafka manager

Cd kafka-manager/bin./kafka-manager-java-home / path/to/java1.8

Run in the background:

Nohup. / kafka-manager-java-home / path/to/jdk8-Dconfig.file=../conf/application.conf > / dev/null 2 > & 1 &

6. View the web page in localhost:9000.

(1) create cluster: click Cluster and Add Cluster at the top

(2) configure cluster:

First name; Cluster zkhost format: host1:2181,host2:2181,host3:2181

Kafka version. Check JMX and the check box below to show more metrics.

7. After the creation is completed, you can view the

Topics related:

This is the end of the article on "how to use kafka-manager". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Configuration more articles compilation good practical one line no content just name background foundation official password metrics files articles is in format Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS Shulou Information Huawei Redmi