After job creation, if you want to run the job defined on the cluster, you need to create an execution plan. An execution plan can contain more than one job, and you can define their order.
For example, if one of your scenarios is: prepare data > process data > clean up data, you can define three jobs named “prepare-data”, “process-data”, and “cleanup-data”, and then create an execution plan to include these three jobs.
The steps to create an execution plan are as follows:
Log on to the Execution Plan page of Alibaba Cloud E-MapReduce Console.
Select the region.
Click Create an execution plan in the top right corner.
There are two options on the Select Cluster Mode page, “Create on Demand” and “Existing Cluster.” “Create on Demand” means that you currently have no clusters, you intend to run the execution plan in a temporary cluster, and you will have the temporary cluster automatically released after running the execution plan. “Existing Cluster” means that you currently have at least one cluster running, and the execution plan should be submitted to and run in the existing cluster.
If “Create on Demand” is selected, you should execute the same steps as creating the cluster, select the configuration of this on-demand cluster, and click OK.
If “Existing Cluster” is selected, access the Select Cluster page. You can select the cluster to be associated with the execution plan.
Click Next to enter the Configure Job page. The page will display the previously defined job list defined on the left, and the job list to be run as per the newly created execution plan on the right.
Select jobs on the left to populate the right as per the execution order to implement definition of the execution plan. You can click the question mark to view the detailed parameters. After completion, click Next.
Set the execution plan name.
Select the scheduling policy as shown in the following figure.
Periodic scheduling - The frequency and the time to start the scheduling is set.
Manual execution - The execution plan can only be executed if you click it manually.
Click Confirm to submit to complete the creation of the execution plan.