You can release an E-MapReduce (EMR) cluster if you no longer need the cluster. After a cluster is released, you are no longer charged for the cluster. The data of the released cluster cannot be recovered. Proceed with caution. This topic describes how to release a cluster.
Prerequisites
Pay-as-you-go cluster: The cluster is in the Initializing, Running, or Idle state.
Subscription cluster: The cluster is in the Running or Startup Failed state, and no ECS instance exists in the cluster. For information about how to release an ECS instance, see Release an instance.
The release protection feature is disabled. For more information about the release protection feature, see Enable and disable release protection.
Precautions
Before you release a subscription cluster, you must release all ECS instances in the cluster. If a cluster has ECS instances that are stopped but are not released, you cannot release the cluster.
After all ECS instances are released, the subscription EMR cluster is automatically released within 15 minutes.
When you release an ECS instance, if an ongoing task exists in the ECS instance, the task fails.
Before your subscription cluster expires, you can release all ECS instances in the cluster if you no longer need the cluster. When you release the ECS instances, the system refunds you the fees for unused resources. For more information, see Refund policy. To view your refund status, perform the following operations: Log on to the Expenses and Costs console. In the left-side navigation pane, choose Bills > Bill Details. For information about the refunding rules and operations, see Refund policy.
Procedure
Go to the EMR on ECS page.
Log on to the EMR console. In the left-side navigation pane, click EMR on ECS.
In the top navigation bar, select the region where you want to create a cluster and select a resource group based on your business requirements.
You cannot change the region of a cluster after the cluster is created.
By default, all resource groups in your account are displayed.
On the EMR on ECS page, find your cluster, move the pointer over the
icon and select Release.
You can also go to the Basic Information tab of the cluster that you want to release and choose All Operations > Cluster Operation > Release in the upper-right corner.
In the Release Cluster message, click OK.
FAQ
How do I save the configurations of a specific cluster and create a new cluster based on the saved configurations after I release the specific cluster?
After a cluster is released, the data and configurations of the cluster cannot be recovered. If you want to create a cluster that has the same configurations as the cluster that you want to release, you can create a cluster template based on the configurations of the cluster that you want to release. For information about how to create a cluster template, see Create a cluster template. For information about how to create a cluster based on a cluster template, see Create a cluster based on a cluster template.
You can save the configurations of a cluster as a cluster template when you create a cluster. For more information, see Create a cluster.