Yes, you can use EvalFunc.warn(Object o, String msg, Enum warningEnum).

Daniel

Dexin Wang wrote:
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

Reply via email to