Updated on 2022-12-14 GMT+08:00

Submitting a Shell Job

Scenario

This section describes how to submit an Oozie job of the Shell type on the Hue web UI.

Procedure

  1. Create a workflow. For details, see Creating a Workflow.
  2. On the workflow editing page, select next to Shell and drag it to the operation area.
  3. In the Shell window that is displayed, set Shell command, for example, to oozie_shell.sh, and click Add.
  4. Click FILE+ to add the Shell command execution file and Oozie example execution file, for example, /user/admin/examples/apps/shell/oozie_shell.sh.
  5. Click in the upper right corner of the Oozie editor.

    If you need to modify the job name before saving the job (default value: My Workflow), click the name directly for modification, for example, Shell-Workflow.

  6. After the configuration is saved, click , and submit the job.

    After the job is submitted, you can view the related contents of the job, such as the detailed information, logs, and processes, on Hue.

    • When configuring a shell command as a Linux command, specify it as the original command instead of the shortcut key command. For example, do not set ls -l to ll. You can configure it as the shell command ls, and add a parameter -l.
    • When uploading the shell script to HDFS on Windows, make sure that the shell script format is Unix. If the format is incorrect, the shell job fails to be submitted.