Deleting an MRS Tenant
You can delete MRS tenants that are no longer used based on service requirements, releasing resources occupied by the tenants.
Prerequisites
- The IAM users have been synchronized in advance. You can do this by clicking Synchronize next to IAM User Sync on the Dashboard page of the cluster details.
- You have logged in to MRS Manager. For how to log in, see Accessing MRS Manager.
- You have checked whether the tenant to be deleted has sub-tenants. If the tenant has sub-tenants, delete them; otherwise, you cannot delete the tenant.
- The role of the tenant to be deleted cannot be associated with any user or user group.
Deleting a Tenant on the MRS Management Console
- On the MRS details page, click Tenants.
- In the tenant list on the left, move the cursor to the tenant node to be deleted and click Delete.
The Delete Tenant dialog box is displayed. If you want to save the tenant data, select Reserve the data of this tenant. Otherwise, the tenant's storage space will be deleted.
- Click OK.
It takes a few minutes to save the configuration. After the tenant is deleted successfully, the role and storage space of the tenant are also deleted.
- After the tenant is deleted, the task queue of the tenant still exists in YARN.
- If you choose not to reserve data when deleting the parent tenant, data of sub-tenants is also deleted if the sub-tenants use storage resources.
Deleting a Tenant on Manager
For MRS 3.x and later versions:
- Log in to Manager and choose Tenant Resources.
- In the tenant list on the left, click the target tenant and click .
- If you want to retain the tenant data, select Reserve the data of this tenant resource. Otherwise, the storage space of the tenant will be deleted.
- To delete a tenant without retaining the tenant data as a user who does not belong to the supergroup, you should first log in to the HDFS client as a user who belongs to the supergroup and then manually clear the storage space of that tenant to avoid residual data.
- In the Delete Tenant dialog box, enter DELETE in the confirmation text box. Click OK.
It takes a few minutes to save the configuration. After the tenant is deleted successfully, the role and storage space of the tenant are also deleted.
After the tenant is deleted, the task queue of the tenant still exists in YARN. The queue of the tenant is not displayed on the role management page in YARN.
For MRS 2.x and earlier versions:
- On MRS Manager, click Tenant.
- In the tenant list on the left, move the cursor to the tenant node to be deleted and click Delete.
The Delete Tenant dialog box is displayed. If you want to save the tenant data, select Reserve the data of this tenant. Otherwise, the tenant's storage space will be deleted.
- Click OK.
It takes a few minutes to save the configuration. After the tenant is deleted successfully, the role and storage space of the tenant are also deleted.
- After the tenant is deleted, the task queue of the tenant still exists in YARN.
- If you choose not to reserve data when deleting the parent tenant, data of sub-tenants is also deleted if the sub-tenants use storage resources.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot