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

Switch to Threaded View
Pig >> mail # user >> error handling in Python UDFs with Pig 0.11


Copy link to this message
-
error handling in Python UDFs with Pig 0.11
Hi everyone,
For Java UDFs I can register a generic error handler with the
@MonitoredUDF(errorCallback = MyErrorHandler.class) annotation to handle
exceptions thrown in a UDF. Is anything similar available for Python UDFs?
In general, what's a good way to handle exceptions thrown by Python UDFs?
Should the UDF code handle the exceptions to guarantee that the processing
continues or are there any elegant solutions to this problem?

Thanks,
Nezih