pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sudhir Ranjan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-4609) PIG : How to use counter in pig script
Date Fri, 19 Jun 2015 00:20:00 GMT

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

Sudhir Ranjan updated PIG-4609:
-------------------------------
    Description: 
Hi There,

How can I use counter to count the total #of records processed through pig script. 
I know that it can be achieved by writing & invoking a UDF from pig script or by using
GROUPBY & COUNT(), but here I don't want to go this way.

I need the way in PIG like the way we are accessing the counter as 
context.getCounter(MyCounters.Counter).increment(1);

> PIG : How to use counter in pig script
> --------------------------------------
>
>                 Key: PIG-4609
>                 URL: https://issues.apache.org/jira/browse/PIG-4609
>             Project: Pig
>          Issue Type: Task
>          Components: internal-udfs, parser, piggybank
>    Affects Versions: 0.8.0, 0.11
>            Reporter: Sudhir Ranjan
>
> Hi There,
> How can I use counter to count the total #of records processed through pig script. 
> I know that it can be achieved by writing & invoking a UDF from pig script or by
using GROUPBY & COUNT(), but here I don't want to go this way.
> I need the way in PIG like the way we are accessing the counter as 
> context.getCounter(MyCounters.Counter).increment(1);



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

Mime
View raw message