Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
The Oozie 2.3 documentation has this to say about capturing the output of a Java action:
The capture-output element can be used to propagate values back into Oozie context, which can then be accessed via EL-functions. This needs to be written out as a java properties format file. The filename is obtained via a System property specified by the constant JavaMainMapper.OOZIE_JAVA_MAIN_CAPTURE_OUTPUT_FILE
That last sentence is wrong for the latest releases. The Java action should write out the properties to a file whose name is given by the system property oozie.action.output.properties. These properties can then be accessed in a subsequent action using an EL expression like ${wf:actionData('foo')['bar']}, where foo is the name of the Java action and bar is the key for the desired property.
Attachments
Issue Links
- duplicates
-
OOZIE-1236 Documentation on capture-output element for Java action has incorrect property to get the filename
- Closed