Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.1
-
None
-
Windows and Unix
Description
For Flink 1.1.1 we configured Graphite metrics settings on the flink-conf.yaml (for job manager (and taskmanager)).
We see the following error in the log:
2016-08-15 14:20:34,167 ERROR org.apache.flink.runtime.metrics.MetricRegistry - Could not instantiate metrics reportermy_reporter. Metrics might not be exposed/reported.
java.lang.ClassNotFoundException: org.apache.flink.metrics.graphite.GraphiteReporter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.apache.flink.runtime.metrics.MetricRegistry.<init>(MetricRegistry.java:119)
We found out that this class is not packaged inside flink-dist_2.11-1.1.1.jar.
Long story short: we had to install/provide the following jars into the lib folder to make Graphite metrics to work:
flink-metrics-graphite-1.1.1.jar
flink-metrics-dropwizard-1.1.1.jar
metrics-graphite-3.1.0.jar (from dropwizard)
We think these libraries (and the ones for Ganglia,StatsD,...) should be included in flink-dist_2.11-1.1.1.jar, for these are needed at manager startup time.
Attachments
Issue Links
- links to