Search in sources :

Example 1 with TaskAttemptReportPBImpl

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());
}
Also used : MRProtos(org.apache.hadoop.mapreduce.v2.proto.MRProtos) TaskAttemptReportPBImpl(org.apache.hadoop.mapreduce.v2.api.records.impl.pb.TaskAttemptReportPBImpl) Test(org.junit.Test)

Aggregations

TaskAttemptReportPBImpl (org.apache.hadoop.mapreduce.v2.api.records.impl.pb.TaskAttemptReportPBImpl)1 MRProtos (org.apache.hadoop.mapreduce.v2.proto.MRProtos)1 Test (org.junit.Test)1