incubator-oozie-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Virag Kothari <>
Subject Re: Is it possible to get all PIG error codes in Oozie?
Date Wed, 12 Oct 2011 17:28:55 GMT

Hi Marek,

Oozie uses the PigRunner API to submit pig job for pig versions 0.8 and
above. Currently, when a pig job ends, Oozie uses return code 2 for failure
and 0 for success. (More on Return Codes:
So, I don't think you can get all error codes of Pig through a pig job.

Alternatively, you can try using PigRunner API in Java code as Oozie
supports java action. There you can have your own logic of returning the
error codes thrown by Pig.


On 10/12/11 1:30 AM, "Marek Miglinski" <> wrote:

> Hey guys,
> I've encountered with interesting situation when I run a Pig job through
> Oozie. When Pig doesn't get any input data it throws "Message:
> org.apache.pig.backend.executionengine.ExecException: ERROR 2118: No input
> paths specified in job", after that Oozie goes right to <kill> tag in XML.
> Now, how do I get PIG's ERROR code? Because I see that Oozie only has got
> functions:
> ${wf:errorMessage(wf:lastErrorNode())} which outputs:
> Main class [org.apache.oozie.action.hadoop.PigMain], exit code [2]
> ${wf:errorCode('Calculations')} which outputs:
> 2
> ${wf:lastErrorNode()} which outputs:
> Calculations
> Error exit code [2] is thrown by "ERROR
> - ERROR 2244: Job failed, hadoop does not return any error message
> Intercepting System.exit(2)" Which is thrown in any situation, but I need a
> specific case, when PIG doesn't got any data to parse, so I could handle that
> by another Job... Is there a way?

View raw message