I added the below configuration in flink-conf in each taskmanagers. (flink 1.0.3 version )
# Enable JMX
env.java.opts: -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.host=XX.XX.XX.XX
Then tried to access it via service:jmx:rmi:///jndi/rmi://XX.XX.XX.XX:9999/jmxrmi from a normal java program using javax.management.remote.JMXConnector
But connection refusing. I checked my port, its opened.
Then i added below configs in Flink 1.1.1
# JMX Metrics
metrics.reporters : jmx_reporter
metrics.reporter.jmx_reporter.class: org.apache.flink.metrics.jmx.JMXReporter
metrics.reporter.jmx_reporter.host: XX.XX.XX.XX
metrics.reporter.jmx_reporter.port: 8080-8082
But no hope. Am i miss anything ?