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
Attachments
Issue Links
- relates to
-
RATIS-702 Make metrics reporting implementation pluggable
- Resolved