Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4396

GraphiteReporter class not found at startup of jobmanager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.2.0, 1.3.0
    • 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

          Activity

            People

              chesnay Chesnay Schepler
              rvdwenden RWenden
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified