Updated on 2024-09-23 GMT+08:00

Adding and Deleting an MRS Cluster Component

When creating an MRS cluster, you can select service components to be included in the cluster. After the cluster is created, administrators can manually add or delete components for MRS on the console.

MRS 3.1.2-LTS.3 and later versions allow you to add and delete components.

Prerequisites

  • You have configured permissions for the user group to which the IAM users belong.

    Adding or deleting a service in a cluster is a high-risk operation. Bind the MRS FullAccess, MRS Administrator, Server Administrator, Tenant Guest, MRS Administrator, or Tenant Administrator policy to the user group before you perform this operation.

    For details about the permissions, see Synchronizing IAM Users to MRS.

  • 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.

Adding or Deleting a Cluster Component

  1. Log in to the MRS console.
  2. On the Active Clusters page, select a running cluster and click its name to switch to the cluster details page.
  3. On the cluster details page, choose Components and click Add Service.
  4. In the service list, select the services to be added and click Next.

    • When you add a service, the underlying services on which the service depends are automatically selected. You can add multiple services at the same time.
    • You can add services only on nodes or node groups that are in normal state.
    • Components (MapReduce, YARN, and HDFS) in the Hadoop service cannot be added separately.
    • If Hadoop is not installed in a cluster, after Hadoop is added, you need to refresh the console and synchronize IAM users again to submit jobs on the job management page.
    • After the Spark2x/Spark component is added, if you need to perform operations on Spark SQL on the Hue web UI, restart the Hue service first.

  5. On the Topology Adjustment page, select the nodes where the service is to be deployed. For details about the deployment scheme, see Table 2.
  6. Confirm the operation impact and click OK. After the service is added, you can view the added service on the Components page.
  7. Locate the row that contains the service and click Delete to delete a service.

    Enter DELETE in the displayed Delete Service dialog box and click OK to confirm the deletion.
    • If the service to be deleted has upper-layer dependencies, the service cannot be deleted. Only one service can be deleted at a time.
    • You can delete installed services except Hadoop (HDFS, YARN, and MapReduce), Ranger, DBService, KrbServer, LdapServer, and meta services.
    • Before deleting a service, back up the service data to prevent data loss.