我是学习者,需要帮助。
我有一个实现Flink MetricsReporter interface的Java maven项目,作为我的自定义记者发送指标。
在我当地的Flink,我能够:
在这个工作流程有效的概念证明之后,我想要做的是:
lib/
文件夹下
醇>
我的jar名为x-y-reporter-1.0-SNAPSHOT.jar
pom
<groupId>a.b.c</groupId>
<artifactId>x-y-reporter</artifactId>
<version>1.0-SNAPSHOT</version>
我将以下配置更新为flink-conf.yaml
metrics.reporters: x-y-reporter
metrics.reporter.x-y-reporter.class: com.b.c.xyreporter.XYReporter
metrics.reporter.x-y-reporter.class.host: localhost
metrics.reporter.x-y-reporter.port: 8789
问题:
非常感谢你。
答案 0 :(得分:0)
Checked flink logs after restarting flink with configuration in the question. It turns out that there's an error within my custom class. After fixing the error, and by connect to LOCAL apache-flink process in JConsole, I can see the class under MBean lists. I do not need to connect to remote or localhost.