You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Josh Devins <in...@joshdevins.net> on 2010/11/10 16:18:56 UTC

Pig counters and UDF_WARNING_1

I just ran a Pig job and for the first time noticed the output at the end of
the job (and of course a matching counter):

Encountered Warning UDF_WARNING_1 108939522 time(s)

What exactly does this count refer to and is there any way to find out what
the actual warning is about? I've checked the job logs and could not see any
details. Considering the size of the counter, it would be good to know what
this refers to.

Cheers,

josh

Re: Pig counters and UDF_WARNING_1

Posted by Thejas M Nair <te...@yahoo-inc.com>.
Try running pig with -warning option (preferably on sample of the data), that will turn off warning aggregation and give more specific warning messages.
When I grep'd for this in the source, I found two udfs using this -

src/org/apache/pig/builtin/REGEX_EXTRACT.java:        warn("RegexExtract : Cannot extract group for input "+input.get(0), PigWarning.UDF_WARNING_1);
src/org/apache/pig/builtin/UPPER.java:                    input.get(0).getClass()+" to String", PigWarning.UDF_WARNING_1);
src/org/apache/pig/builtin/UPPER.java:            warn("Error processing input "+input.get(0), PigWarning.UDF_WARNING_1);





On 11/10/10 7:18 AM, "Josh Devins" <in...@joshdevins.net> wrote:

I just ran a Pig job and for the first time noticed the output at the end of
the job (and of course a matching counter):

Encountered Warning UDF_WARNING_1 108939522 time(s)

What exactly does this count refer to and is there any way to find out what
the actual warning is about? I've checked the job logs and could not see any
details. Considering the size of the counter, it would be good to know what
this refers to.

Cheers,

josh