Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Consider the subworkflow scenario as below:
- Parent workflow is a subworkflow "subwf" with a required library oozie-examples.jar.
- Child workflow is a java workflow "java-wf" with a required library main.jar
On submitting the job, it is found that the libraries (.jars in this case) from the child workflow do not appear in the java class path or the mapred.cache. As a result, the job fails with "java.lang.RuntimeException: java.lang.ClassNotFoundException".
The CLASSPATH of the job (taken from job log on JT) shows libraries that are in the main workflow, not the sub-workflow. However, when the .jars from child workflow were copied to the parent workflow, everything seems to work. This raises the question that whether the child workflows's lib directory is not used?
Different Scenarios Tested:
------
Parent Lib Directory contains oozie-examples.jar, Child Lib Directory contains main.jar => Application Fails
Parent Lib Directory contains main.jar, Child Lib Directory is empty => Application Succeeds