Propagate ErrorCode from a specific Oozie action in subworkflow to main workflow

Viewed 10

An action ends with a E1111 ErrorCode in an Oozie subworkflow. The main workflow (which launches the subworkflow) shows with that the subworkflow is in ERROR but the ErrorCode og the subworkflow is empty (with oozie job -info ...).

Example:

Workflow Name : my_spark_subworkflow
-----------------------------------------------------------------------------------------------------------------------
0001411-220916160325662-oozie-oozi-W@my_spark_app                             ERROR     11957                  ERROR      E1111
------------------------------------------------------------------------------------------------------------------------------------
0001411-220916160325662-oozie-oozi-W@fail                                     OK        -                      OK         E0729
------------------------------------------------------------------------------------------------------------------------------------

Workflow Name : my_main_workflow
------------------------------------------------------------------------------------------------------------------------------------
0001410-220916160325662-oozie-oozi-W@my_spark_subworkflow       ERROR     0001411-220916160325662-oozie-oozi-WKILLED     -
------------------------------------------------------------------------------------------------------------------------------------

The my_spark_subworkflow line in my_main_workflow shows ERROR but lost the ErrorCode (- is printed instead). This might be due to the @fail action that ends with OK in my_spark_subworkflow, but I would like the ErrorCode of my_spark_subworkflow to be used instead as a global subworkflow ErrorCode.

0 Answers
Related