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:
A project created in EMR. For more information, see Manage projects.
Create a Shell job
Log on to the Alibaba Cloud EMR console.
In the top navigation bar, select the region where your cluster resides and select a resource group.
Click the Data Platform tab.
In the Projects section, find your project and click Edit Job in the Actions column.
In the Edit Job pane on the left, right-click the target folder and select Create Job.
In the Create Job dialog box, configure the following settings, then click OK.
Parameter Description Name Enter a name for the job. Description Enter a description for the job. Job Type Select Shell. This creates a Bash Shell job. In the Content field, enter the shell commands for the job. Example:
DD=`date`; echo "hello world, $DD"Click Save.