Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1573

Supply user-defined properties to Oozie workflows during schedule

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: trunk
    • Component/s: oozie
    • Labels:
      None

      Description

      The work in FALCON-1434 added the ability to specify properties for the purpose of enabling scheduler selection. However, this could be more generally useful as a means for users to submit custom properties that will be visible in Oozie workflows.

      This will enable users to reference properties in the entity XML itself and passing these properties down to workflows. For example, a process scheduled with the command:

      bin/falcon entity -schedule -type process -name helloFalconProcess -properties custom.property:HEY
      

      can reference the property custom.property in the process XML as

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <process name="helloFalconProcess" xmlns="uri:falcon:process:0.1">
        ...
        <properties>
          ...
          <property name="customProperty" value="${coord:conf('custom.property')}"/>
          ...
        </properties>
        ...
      </process>
      

      An Oozie workflow can then easily make use of such property:

      <workflow-app xmlns="uri:oozie:workflow:0.4" name="hello-falcon-wf">
        ...
          <java>
            ...
            <arg>--customValue=${customProperty}</arg>
            ...
          </java>
          ...
      </workflow-app>
      

        Attachments

        1. FALCON-1573-v1.patch
          6 kB
          Daniel del Castillo
        2. FALCON-1573-v2.patch
          8 kB
          Daniel del Castillo
        3. FALCON-1573-v3.patch
          11 kB
          Daniel del Castillo
        4. FALCON-1573-v4.patch
          11 kB
          Ajay Yadava

          Issue Links

            Activity

              People

              • Assignee:
                ddcprg Daniel del Castillo
                Reporter:
                ddcprg Daniel del Castillo
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: