HBASE-11816 Initializing custom Metrics implementation failed in Mapper or Reducer
This commit is contained in:
parent
67646d3694
commit
f96dc97612
|
@ -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, "");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue