All Products
Search
Document Center

E-MapReduce:Configure a Shell job

Last Updated:Mar 26, 2026

Add a Shell job to your E-MapReduce (EMR) project to run Bash Shell scripts as part of a scheduled workflow. Use a Shell job when you need to run custom shell commands or scripts on your cluster — for example, to preprocess data, clean up temporary files, or trigger downstream processes.

Prerequisites

Before you begin, make sure you have:

Create a Shell job

  1. Log on to the Alibaba Cloud EMR console.

  2. In the top navigation bar, select the region where your cluster resides and select a resource group.

  3. Click the Data Platform tab.

  4. In the Projects section, find your project and click Edit Job in the Actions column.

  5. In the Edit Job pane on the left, right-click the target folder and select Create Job.

  6. In the Create Job dialog box, configure the following settings, then click OK.

    ParameterDescription
    NameEnter a name for the job.
    DescriptionEnter a description for the job.
    Job TypeSelect Shell. This creates a Bash Shell job.
  7. In the Content field, enter the shell commands for the job. Example:

    DD=`date`;
    echo "hello world, $DD"
  8. Click Save.