Kafka Eagle 2.0.5 JMX service url[hostname:JMX_PORT] create has error, msg is wrong

created at 08-02-2021 views: 10

Note: This article only resolves this error. Please make sure that Kafka Eagle has been installed and configured according to the online tutorial or official tutorial, and has been successfully started.

problem description

kafka-eagle/logs/error.log

error.log

Kafka information is not displayed on the webpage
Information that meets the upper prompt of the web page

Kafka version is “-” or JMX Port is “-1” maybe kafka broker jmxport disable

dashboard

Solution

1 check the zookeeper configuration

  • Enter the zookeeper/bin directory
  • Enter the command vi zkServer.sh in the terminal and press Enter
  • Add the following content after line 77 (no need to modify)
// Add after line 77
ZOOMAIN="-Dzookeeper.4lw.commands.whitelist=* ${ZOOMAIN}"

Press Esc to exit the input mode, keyboard input :wq to save the file and exit

2 check Kafka configuration

  • Enter the Kafka-2.8.0/bin directory (that is, the bin folder under kafka)
  • Enter the command vi kafka-server-start.sh in the terminal and press Enter
  • Find the following location
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"
fi

For the added statement export JMX_PORT="9999", the modified version is as follows

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"
fi

Press Esc to exit the input mode, keyboard input :wq to save the file and exit

3 restart Kafka

4 restart Kafka Eagle

summary

  1. Check Zookeeper
  2. check Kafka configuration
created at:08-02-2021
edited at: 08-02-2021: