Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-750

Ratis server fails with "java.lang.ClassNotFoundException: com.codahale.metrics.jvm.GarbageCollectorMetricSet"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • build
    • None

    Description

      In testing the current master, starting the Ratis server via {{./ratis-examples/src/main/bin/server.sh filestore server --storage $storage --id $id --peers $peers 2>&1 | }} I end up with the following failure to start:

      Found /home/vagrant/incubator-ratis/ratis-examples/target/ratis-examples-0.5.0-SNAPSHOT.jar
      2019-11-11 03:27:52 INFO  MetricRegistries:64 - Loaded MetricRegistries class org.apache.ratis.metrics.impl.MetricRegistriesImpl
      2019-11-11 03:27:52 WARN  MetricRegistriesImpl:61 - First MetricRegistry has been created without registering reporters. You may need to call MetricRegistries.global().addReportRegistration(...) before.
      Exception in thread "main" java.lang.NoClassDefFoundError: com/codahale/metrics/jvm/GarbageCollectorMetricSet
              at org.apache.ratis.metrics.JVMMetrics.addJvmMetrics(JVMMetrics.java:42)
              at org.apache.ratis.metrics.JVMMetrics.initJvmMetrics(JVMMetrics.java:32)
              at org.apache.ratis.examples.filestore.cli.Server.run(Server.java:60)
              at org.apache.ratis.examples.common.Runner.main(Runner.java:58)
      Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.jvm.GarbageCollectorMetricSet
              at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              ... 4 more
      === Command terminated normally (Mon Nov 11 03:27:52 2019) === 

       

      Attachments

        Issue Links

          Activity

            People

              clayb Clay B.
              clayb Clay B.
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: