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

Switch to Threaded View
Pig >> mail # user >> Timeout for an EvalFunc UDF

Copy link to this message
Re: Timeout for an EvalFunc UDF
BAM! :-)

On May 31, 2012, at 10:12 AM, Alan Gates <[EMAIL PROTECTED]> wrote:

> Take a look at MonitoredUDF, http://pig.apache.org/docs/r0.9.2/udf.html search on MonitoredUDF.
> Alan.
> On May 31, 2012, at 6:46 AM, Ahmed Sobhi wrote:
>> Hi,
>> I'm trying to write an EvalFunc UDF... I know that in some rare cases my
>> data will cause my udf to take forever... for such cases, I want the udf to
>> just ignore these cases so I was thinking about having my logic timeout
>> somehow.
>> Is there any easy way I can do this?
>> I know that timeouts would require the use of threads so I'm not sure if
>> that would be ok or not. Can anyone provide more info on that?
>> --
>> Best Regards,
>> Ahmed Sobhi
>> http://about.me/humanzz/bio