diff --git a/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/metrics/BaseSourceImpl.java b/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/metrics/BaseSourceImpl.java index edc39e7d747..3cbdf8ac95f 100644 --- a/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/metrics/BaseSourceImpl.java +++ b/hbase-hadoop2-compat/src/main/java/org/apache/hadoop/hbase/metrics/BaseSourceImpl.java @@ -48,7 +48,7 @@ public class BaseSourceImpl implements BaseSource, MetricsSource { if (inited) return; inited = true; DefaultMetricsSystem.initialize(HBASE_METRICS_SYSTEM_NAME); - jvmMetricsSource = JvmMetrics.create(name, "", DefaultMetricsSystem.instance()); + jvmMetricsSource = JvmMetrics.initSingleton(name, ""); } }