Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-445

OOZIE-28: Documentation on Capturing Output is Wrong

    XMLWordPrintableJSON

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

          Activity

            People

              rvs Roman Shaposhnik
              hadoopqa Hadoop QA
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: