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

Switch to Plain View
Pig >> mail # user >> Debugging UDFs


+
James Newhaven 2013-04-13, 16:24
Copy link to this message
-
Re: Debugging UDFs
James,

Try to execute in mapreduce mode at least on a pseudo-distributed cluster
and try to find them in specific tasks logs. Also you can try to throw an
exception, just to make sure your code is actually getting there, something
like
if (true) throw new RuntimeException("My warning");

Best Regards
On Sat, Apr 13, 2013 at 8:24 PM, James Newhaven <[EMAIL PROTECTED]>wrote:

> I have defined a pig UDF want to track problems using warnings like this:
>
> warn("My warning", PigWarning.UDF_WARNING_1);
>
> I'm testing this in local mode first, but I never see this warning
> anywhere.
>
> Any help/ideas would be appreciated.
>
>
> Thanks,
>
> James
>