You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Sudhir Ranjan (JIRA)" <ji...@apache.org> on 2015/06/19 02:20:00 UTC
[jira] [Updated] (PIG-4609) PIG : How to use counter in pig script
[ 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)