You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2010/06/24 02:13:50 UTC

[jira] Updated: (PIG-1389) Implement Pig counter to track number of rows for each input files

     [ https://issues.apache.org/jira/browse/PIG-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Ding updated PIG-1389:
------------------------------

    Attachment: PIG-1389.patch

This patch adds two counter groups:

* *MultiInputCounters*: to count the records in each input of a multi-input job (such as join, cogroup, cross).

* *SideInputCounters*: to count the records read from the side file in the cases of merge join, merge cogroup.

These counters can be viewed from Hadoop job track UI. They are also available from APIs on PigStats/JobStats. 

There is no counter for side files of FR join.


 

> Implement Pig counter to track number of rows for each input files 
> -------------------------------------------------------------------
>
>                 Key: PIG-1389
>                 URL: https://issues.apache.org/jira/browse/PIG-1389
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.7.0
>            Reporter: Richard Ding
>            Assignee: Richard Ding
>             Fix For: 0.8.0
>
>         Attachments: PIG-1389.patch
>
>
> A MR job generated by Pig not only can have multiple outputs (in the case of multiquery) but also can have multiple inputs (in the case of join or cogroup). In both cases, the existing Hadoop counters (e.g. MAP_INPUT_RECORDS, REDUCE_OUTPUT_RECORDS) can not be used to count the number of records in the given input or output.  PIG-1299 addressed the case of multiple outputs.  We need to add new counters for jobs with multiple inputs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.