Tags are used to label clusters. You can use tags to identify and manage your cluster resources. You can bind tags during the creation of a cluster or on the basic information page of a created cluster. You can bind a maximum of 20 tags to a cluster.

Limits

Notice
  • Tags of ECS instances are also be updated when you update E-MapReduce (EMR) cluster tags.
  • However, EMR cluster tags are not updated when you update tags of ECS instances. To ensure the consistency between tags for ECS instances and EMR clusters, we recommend that you do not modify tags of ECS instances in the ECS console. If the number of tags of an ECS instance in a cluster reaches the upper limit, you can no longer create tags for the cluster.
  • Each tag consists of a key-value pair.
  • A tag key cannot be empty and can have a maximum of 64 characters. A tag value can be empty and can have a maximum of 128 characters.
  • Tag keys and tag values cannot start with aliyun or acs: and cannot contain http:// or https://.
  • A tag key must be unique. For example, city:shanghai is bound to a cluster. If city:newyork is then bound to the cluster, city:shanghai is automatically unbound.
  • Tag information is not shared across regions. For example, tags created in the China (Hangzhou) region are not visible to the China (Shanghai) region.
  • After you unbind a tag from a cluster, the system automatically deletes the tag if the tag is not bound to any other clusters.

Create or bind a tag

  1. Log on to the Alibaba Cloud E-MapReduce console.
  2. In the top navigation bar, select the region where you want to create a cluster. The region of a cluster cannot be changed after the cluster is created.
  3. Click Cluster Wizard in the Clusters section.
  4. In the Advanced Settings section of the Basic Settings step, click + Add on the right side of Tag.
    For more information about how to create a cluster, see Create an E-MapReduce cluster.
  5. In the Create/Bind Tag dialog box that appears, select an existing tag key or enter a new one to set Tag Key. Tag Value is optional. You can select an existing tag value or enter a new value.
    Create/Bind Tag dialog box
    Note If you select an existing tag key and tag value, it indicates that you want to bind an existing tag. If you enter a new tag key, it indicates that you want to create a tag.
  6. Click Confirm.
    Confirm the tag to be bound.
  7. Click Confirm.
    Bind the tag.

Use tags to search for clusters

On the Cluster Management tab, search for a target cluster by using a tag key or tag value.

  1. Log on to the Alibaba Cloud E-MapReduce console.
  2. On the EMR homepage, click the Cluster Management tab.
  3. On the Cluster Management tab that appears, click Tag and select a tag key. If you do not select a tag value, all clusters bound to the tag key are displayed.
  4. Click Search next to Tag.
    Clusters that meet the search criterion are displayed in a list.

Manage cluster tags

Bind, unbind, or view tags of existing clusters.

  1. Log on to the Alibaba Cloud E-MapReduce console.
  2. On the EMR homepage, click the Cluster Management tab.
  3. Click Details in the Actions column that corresponds to a cluster in the list.
  4. On the Cluster Overview page, click Edit Tag in the Cluster Info section.
  5. In the Edit Tag dialog box that appears, configure the following information:
    • Create a tag.
      1. Click Add Tag in the lower-left corner.
      2. Set Tag Key and Tag Value.
      3. Click Confirm.
      4. Click Confirm.
    • Bind an existing tag.
      1. Click Existing Tags in the lower-left corner.
      2. Select an existing tag key and the tag value that matches.
      3. Click Confirm.
    • Unbind a tag.

      Click Unbind next to a tag to unbind this tag.

    Note The tag value is optional.

System tags

When you create an EMR cluster, two system tags are automatically bound to each ECS instance. You can perform the following operations to identify the cluster to which an ECS instance belongs and the role of the ECS instance in the cluster: Log on to the Alibaba Cloud ECS console. Click Tags in the left-side navigation pane. On the Tags page that appears, click System Tags in the left-side navigation tree on the Tags tab.

For example, the following information shows system tags for an ECS instance, which indicates that the ECS instance serves as a core node in the EMR cluster with the ID of C-A510C93EA117XXXX.
  • acs:emr:clusterId=C-A510C93EA117XXXX
  • acs:emr:hostGroupType=CORE