Not Able to see kafka.consumer and kafka.producer mBean in jConsole

旧城冷巷雨未停 提交于 2019-12-02 15:13:45

问题


EDIT : I come to know that I should enable JMX in my Consumer and Producer processes and get mBean info from respective processes. How will i do this for a Java process publishing message to Kafka and other Java processes consuming messages ?

I have enabled JMX for Kafka . But still I cant see those two mBeans in jConsole.

I tried pub/sub onn Kafka broker but still no results . My steps were as follows : Added following in kafka-run-class.sh:

KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.1.1 -Djava.net.preferIPv4Stack=true"

Added port in export JMX_PORT=${JMX_PORT:-9999} in kafka-server-start.sh

来源:https://stackoverflow.com/questions/52397198/not-able-to-see-kafka-consumer-and-kafka-producer-mbean-in-jconsole

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!