You can configure a Shell job to run shell scripts in an E-MapReduce project.
Prerequisites
Ensure you have created a project. For more information, see project management.Procedure
-
Go to the Projects page in Data Platform.
-
Log in to the E-MapReduce console with your Alibaba Cloud account.
-
In the top navigation bar, select the region and resource group.
-
Click the Data Development tab.
-
-
In the row of the project you want to edit, click Edit Job.
- Create a Shell job.
- On the left side of the page, right-click the target folder and select Create Job.
- In the Create Job dialog box, enter a Job Name and Description, and select Shell from the Job Type drop-down list.
This creates a Bash Shell job.
- Click OK.
- Edit the job content.
- In the Job Content field, enter the shell script.
Example:
DD=`date`; echo "hello world, $DD" - Click Save.
- In the Job Content field, enter the shell script.