Tags are used to label clusters. You can use tags to identify and manage your cluster
resources. You can add tags when you create a cluster. You can also add tags on the
Cluster Overview page of a created cluster. You can add up to 20 tags to a single
cluster. This topic describes how to add, remove, and view tags and how to use tags
to search for clusters.
Background information
An E-MapReduce (EMR) cluster contains multiple Elastic Compute Service (ECS) instances.
When you create an EMR cluster, two system tags are automatically added to each ECS
instance in the cluster. To identify the cluster to which an ECS instance belongs
and to identify the role of the ECS instance in the cluster, perform the following
steps: Log on to the
Alibaba Cloud ECS console and move the pointer over the tag icon of an ECS instance on the Instances page.

For example, an ECS instance has the following system tags:
- acs:emr:clusterId=C-A510C93EA117****
- acs:emr:hostGroupType=CORE
In this example, the ECS instance is a core node of an EMR cluster whose ID is
C-A510C93EA117****.
Add a new tag or an existing tag when you create a cluster
- 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 based on your business requirements.
- Click Cluster Wizard in the Clusters section. In the Advanced Settings section of the Basic Settings step, find Tag and click + Add.
- In the Create/Bind Tag dialog box, select an existing tag key or enter a new tag key for Tag Key.
If you select an existing tag key, you can add an existing tag. If you enter a new
tag key, you can create a tag and then add the tag.

Note Each tag consists of a key-value pair. Tag keys and tag values have the following
limits:
- A tag key cannot be empty and can be up to 128 characters in length. A tag value can
be empty and can be up to 128 characters in length.
- Tag keys and tag values cannot start with aliyun or acs: and cannot contain http://
or https://.
- A tag key must be unique in a cluster. For example, the city/shanghai tag is added to a cluster. If the city/newyork tag is then added to the cluster, the city/shanghai tag is automatically removed.
- Click Confirm.
Confirm the tag to be added.
- Click Confirm.
The tag is added.
Use tags to search for clusters
On the Cluster Management page, search for a cluster by using a tag key or tag value.
- Go to the Cluster Management page.
- 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 based on your business requirements.
- Click the Cluster Management tab.
- On the Cluster Management page, click Tag and select a tag key.
If you do not select a tag value, all clusters to which the tag key is added are displayed.
- Click Search next to Tag.
All the clusters that meet the search condition are displayed.
Manage the tags of an existing cluster
You can add, remove, or view the tags of an existing cluster.
- Go to the Cluster Overview page of your cluster.
- 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 based on your business requirements.
- Click the Cluster Management tab.
- Find the cluster whose tags you want to manage and click Details in the Actions column.
- On the Cluster Overview page, click Edit Tag in the Cluster Info section.
- In the Edit Tag dialog box, perform the following steps:
- Add a new tag.
- Click Add Tag in the lower-left corner.
- In the Edit Tag dialog box, specify Tag Key and Tag Value.
- Click Confirm.
- Click Confirm.
- Add an existing tag.
- Click Existing Tags in the lower-left corner.
- Select an existing tag key and the tag value that matches the tag key.
- Click Confirm.
- Remove a tag.
Click the

icon next to a tag to remove this tag.
Note After you remove a tag from a cluster, the system automatically deletes the tag if
the tag is not added to other clusters.