Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4609

PIG : How to use counter in pig script

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.0, 0.11
    • None
    • internal-udfs, parser, piggybank
    • None

    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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            sudhirranjan Sudhir Ranjan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: