use of org.apache.hadoop.mapreduce.v2.api.records.impl.pb.TaskAttemptReportPBImpl in project hadoop by apache.
the class TestTaskAttemptReport method testBuildImplicitRawCounters.
@Test
public void testBuildImplicitRawCounters() {
TaskAttemptReportPBImpl report = new TaskAttemptReportPBImpl();
org.apache.hadoop.mapreduce.Counters rCounters = MockJobs.newCounters();
report.setRawCounters(rCounters);
MRProtos.TaskAttemptReportProto protoVal = report.getProto();
Counters counters = report.getCounters();
assertTrue(protoVal.hasCounters());
}
Aggregations