Apache Flink:无法通过JMX收集任务度量

Apache Flink:无法通过JMX收集任务度量,apache,apache-flink,Apache,Apache Flink,我已经能够使用Flink运行JMX,并将以下配置应用于集群中所有节点的Flink-conf.yaml文件: metrics.reporters: jmx metrics.reporter.jmx.class: org.apache.flink.metrics.jmx.JMXReporter metrics.reporter.jmx.port: 9020-9022 env.java.opts: -Dcom.sun.management.jmxremote - Dcom.sun.m

我已经能够使用Flink运行JMX,并将以下配置应用于集群中所有节点的Flink-conf.yaml文件:

metrics.reporters: jmx
metrics.reporter.jmx.class: org.apache.flink.metrics.jmx.JMXReporter
metrics.reporter.jmx.port: 9020-9022

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
当我运行JConsole并在主IP:9999/从IP:9020端口上侦听时,我能够看到系统指标,如CPU、内存等


如何访问任务度量及其各自的图表,如字节读取、延迟等,这些都是为每个子任务收集的,并显示在GUI上。

您可以转到jconsole上的
mbeans选项卡,在那里您将看到RHS上以作业和任务名称显示的各种下拉列表。如果您有任何问题,请告诉我