You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Saurabh Gupta (JIRA)" <ji...@apache.org> on 2016/04/06 14:25:25 UTC

[jira] [Created] (TEZ-3200) Could not fetch job counter from hadoop java api

Saurabh Gupta created TEZ-3200:
----------------------------------

             Summary: Could not fetch job counter from hadoop java api
                 Key: TEZ-3200
                 URL: https://issues.apache.org/jira/browse/TEZ-3200
             Project: Apache Tez
          Issue Type: Bug
    Affects Versions: 0.8.2, 0.7.0
            Reporter: Saurabh Gupta


I am submitting a map reduce job through hadoop java api using
status = job.waitForCompletion(true) ? 0 : 1;
where job is instance of org.apache.hadoop.mapreduce.Job.
After the job completion I am fetching the job counter using
Counters counters = job.getCounters();
Counter reduceCounter = counters.findCounter("org.apache.tez.common.counters.TaskCounter",
"OUTPUT_RECORDS");
int value= reduceCounter.getValue();
The value I am getting is zero.

The job I am submitting is map reduce job but I have set the property mapreduce.framework.name to yarn-tez.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)