HBASE-11816 Initializing custom Metrics implementation failed in Mapper or Reducer

This commit is contained in:
stack 2014-08-25 12:27:09 -07:00
parent 67646d3694
commit f96dc97612
1 changed files with 1 additions and 1 deletions

View File

@ -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, "");
}
}