scope, metricsCollectionService.getCollector(scope, getMetricContext(program), INSTANCE_ID));
}
// for user metrics. type can be null if its not in a map or reduce task, but in the yarn container that
// launches the mapred job.
this.mapredMetrics = (type == null) ?
null : new MapReduceMetrics(metricsCollectionService, getApplicationId(), getProgramName(), type);
} else {
this.systemMapperMetrics = null;
this.systemReducerMetrics = null;
this.systemMetrics = null;
this.mapredMetrics = null;