Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

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


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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB