Workflow Management
Also available as:
PDF
loading table of contents...

Submit and Execute the Workflow Job

From the Workflow Manager workspace, you can submit a workflow, which saves and validates the XML of the workflow. You can choose to submit the job without running it, so you can run it at a later time, or you can run the job on submission. If you choose to submit without running the job, the workflow job displays in the WFM dashboard with status of PREP.

Steps

  1. With the workflow graph displayed in the WFM workspace, click Submit on the Workspace Action Bar.

    A validation check is run. If the workflow XML is valid, the Submit Workflow dialog box displays.

    The validation check does not determine whether or not the workflow will succeed.

  2. In Workflow Path, browse to the location where you want to save the workflow.

  3. Select the directory name and ensure it displays in the Selected Path field.

    For example: /user/wfm/oozie/apps/

  4. In the Selected Path field, append a subdirectory name and the name of the workflow file.

    The workflow file must end in .xml.

    For example: /user/wfm/oozie/apps/workflows/etl-workflow.xml

    Both the subdirectory and file are created.

  5. Click Select.

  6. In the Custom Job Properties section, add the following:

    Name: oozie.action.sharelib.for.sqoop

    Value: sqoop,hive,hcatalog

  7. Check Overwrite.

    This replaces any existing file of the same name in the same path.

    [Tip]Tip

    If you saved the workflow prior to submitting it, then you must select Overwrite or you get an error.

  8. Check Run on Submit to execute the workflow job automatically when submission is complete.

  9. Use the default settings for the remaining fields and options.

  10. Click Submit.

    A message displays stating that the workflow is saved and providing the job ID.

    When you successfully submit, the workflow is saved to HDFS, and the job is submitted and executed.

  11. Click Close.