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.
kafka-eagle/logs/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
zookeeper/bin
directory// 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
Kafka-2.8.0/bin
directory (that is, the bin folder under kafka)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
4 restart Kafka Eagle