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

Switch to Plain View
Pig >> mail # dev >> preferred way to handle errors in LoadFunc constructor?


+
Dmitriy Ryaboy 2010-08-15, 23:16
Copy link to this message
-
Re: preferred way to handle errors in LoadFunc constructor?
Grunt shell should catch the exceptions and print the error. I think it must be doing that already .
In non-interactive mode, I think it would be OK for the process to die in this situation.
-Thejas
On 8/15/10 4:16 PM, "Dmitriy Ryaboy" <[EMAIL PROTECTED]> wrote:

Is there a preferred way to handle errors in LoadFunc initialization?
I suspect that if I throw an exception in the constructor, the Pig process
might die, which is not friendly, esp. to people working in the shell; but
just printing out an error can obviously lead to trouble later on, as well.
Ideas?

-D