Updated on 2023-11-30 GMT+08:00

Failed to Reduce Task Nodes

Symptom

A user fails to reduce the number of task nodes to 0 on details page of the MRS 2.x cluster, and the following information is displayed:

This operation is not allowed because the number of instances of NodeManager will be less than the minimum configuration after scale-in, which may cause data loss.

Cause Analysis

The NodeManager service of the core node is stopped. If the number of task nodes is changed to 0, there will be no NodeManager in the cluster and the Yarn service will be unavailable. Therefore, MRS allows the reduction of task nodes only when the number of NodeManagers is greater than or equal to 1.

Procedure

  1. Go to the Yarn instance page.

    • For versions earlier than MRS 3.x: Click the cluster name on the MRS console and choose Components > Yarn > Instances.

      If the Components tab is unavailable, complete IAM user synchronization first. (On the Dashboard page, click Synchronize on the right side of IAM User Sync to synchronize IAM users.)

    • For MRS 3.x or later: Log in to FusionInsight Manager, choose Cluster, click the name of the target cluster, and choose Services > Yarn > Instance.

  2. Select the NodeManager instance of the core node, click More, and select Start Instance.

  3. Reduce the number of task nodes on the cluster details page.

    1. Click the cluster name, and select the Nodes tab.
    2. Locate the row that contains the task node group and click Scale In in the Operation column.
      Figure 1 Removing task nodes
    3. Click OK. In the displayed dialog box, click Yes.

  4. After the scale-in is successful, stop NodeManager of the core node if you do not need it.

Summary and Suggestions

You are advised not to stop NodeManager of the core node.