Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When 'distcp' action fails due to non-existing source directory, the return code is '-1' instead of a valid oozie return code.
As a result, the distcp action cannot be automatically retried on error (because the return code -1 is not a valid retry_error_code).
$ oozie job -info 0000000-110819184001205-oozie-oozi-W@copy1
ID : 0000000-110819184001205-oozie-oozi-W@copy1
------------------------------------------------------------------------------------------------------------------------------------
Console URL : http://....
Error Code : -1
Error Message : QA: Distcp workflow, error message[Main class [org.apache.hadoop.tools.DistCp], exit code [-1]]
External ID : job_201108122213_4277
External Status : FAILED/KILLED
Name : copy1
Retries : 0
Tracker URI : abc.com:50300
Type : distcp
Started : 2011-08-19 18:43
Status : ERROR
Ended : 2011-08-19 18:43
The fix would be to return a valid oozie error code.