Cluster templates contain saved configurations that you can use to create clusters. This topic describes how to create a cluster template.

Background information

Cluster templates are mainly used for the system to automatically create temporary clusters for data development workflows. If you are concerned only about the completion of the jobs in a data development workflow, you can specify a cluster template. When a workflow starts, the system creates a cluster based on the template you specified and delivers the jobs to the cluster. The cluster is automatically released after the workflow is completed.

Limits

You can use cluster templates to create Hadoop clusters and Dataflow clusters.

Precautions

If you have never used the data development feature in E-MapReduce (EMR) before 21:00 on February 21, 2022 (UTC+08:00), you cannot use the template feature.

Procedure

  1. Go to the Data Platform tab.
    1. Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
    2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
    3. Click the Data Platform tab.
  2. In the Projects section of the page that appears, click Cluster Template in the upper-right corner.
    On the cluster template list page that appears, you can modify or delete an existing cluster template based on your business requirements.
    Action Description
    Edit Find the cluster template that you want to modify, and click Edit in the Actions column to modify the cluster template. After the modification is saved, the modification immediately takes effect on all workflows that are using the cluster template.
    Delete Find the cluster template that you want to delete, and click Delete in the Actions column to delete the cluster template.
    Note When you delete a cluster template, the system does not check whether the cluster template is being referenced by a workflow. After the cluster template is deleted, all the workflows that use the cluster template fail.
  3. Create a cluster template.
    1. Click Create Cluster Template in the upper-right corner.
    2. On the Create Cluster Template page that appears, set relevant parameters.

      The operations required to create a cluster template are similar to those required to create a cluster. For more information, see Create a cluster.

      In the Hardware Settings step of the Create Cluster Template page, you can configure multiple instance types. This allows you to prevent cluster creation failures caused by the insufficient inventory of instances of a specified type, which may affect the jobs that you want to run. Multiple instance types
    3. Read the terms of service, select the check box to confirm that you have read the terms of service, and then click Save.
      You can view the cluster template that you created in the cluster template list.