Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig, mail # user - increment counters in Pig UDF


Copy link to this message
-
increment counters in Pig UDF
Dexin Wang 2010-12-16, 01:17
Is it possible to increment a counter in Pig UDF (in either Load/Eval/Store
Func).

Since we have access to counters using the
org.apache.hadoop.mapred.Reporter:

http://hadoop.apache.org/common/docs/r0.20.2/mapred_tutorial.html#Counters

the other way to ask this question is how do we get an instance of Reporter
in UDF? Thanks.

Dexin