Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ MapReduce Service/ User Guide/ Managing Clusters/ Managing MRS Cluster Nodes/ Scaling Up Master Node Specifications in an MRS Cluster

Scaling Up Master Node Specifications in an MRS Cluster

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

As users' increasing services lead to Core node scale-out and high CPU usage, Master node specifications cannot meet user requirements and need to be scaled up. This section describes how to scale up Master node specifications.

Prerequisites

  • You have checked whether the Host Security Service (HSS) is enabled. If HSS is enabled, disable the HSS monitoring on the MRS cluster before you scale up master node specifications.
  • Ensure that sufficient specification resources are available throughout the steps in Scaling Up Master Node Specifications (Step-by-Step Upgrade).

Use Restrictions

  • Master nodes can be scaled up for clusters with two or more master nodes.
  • The specifications of the Master node in a BMS cluster cannot be upgraded.
  • For MRS 1.8.2 or later to a version earlier than MRS 3.x or MRS 3.1.0 or later, see Scaling Up Master Node Specifications (One-Click Upgrade).
  • For MRS 3.0.5 and a version earlier than MRS 1.8.2, see Scaling Up Master Node Specifications (Step-by-Step Upgrade).
  • Do not perform other operations on the cluster during the scale-up.
  • It is best to scale up the Master node specifications during off-peak hours to prevent any service interruptions.

Scaling Up Master Node Specifications (One-Click Upgrade)

  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 Nodes tab page, select Scale Up Specifications in the Operation column of the Master node group. The Scale Up Master Node Specifications page is displayed.
  4. Select the target specifications and click Submit Order. The order has been submitted successfully.

    The node specification scale-up takes some time. After the scale-up is successful, the cluster status changes to Running.
    NOTE:
    • The VM to be scaled up is automatically stopped during the scale-up and started after the scale-up is complete.
    • The scale-up does not automatically upgrade the memory of components due to different component usage requirements. You can adjust the memory of components as needed.

Scaling Up Master Node Specifications (Step-by-Step Upgrade)

Preparing for Scaling Up Master Node Specifications

  1. Log in to the MRS console.
  2. In the navigation pane on the left, choose Active Clusters, select the cluster for which you want to scale up Master node specifications, and click its name to switch to the cluster details page.
  3. Ensure that the cluster status is Running.
  4. On the Nodes tab page, ensure that all nodes in the cluster are in the Running state.
  5. Log in to Manager and go to the cluster management page. For details, see Accessing MRS Manager.
  6. Choose Cluster > Services > ZooKeeper > Dashboard and ensure that Running Status of the ZooKeeper service is Normal.

    Figure 1 ZooKeeper service status

  7. Update service parameter settings as required. For details, see Modifying the Configuration Parameters of an MRS Cluster Component.

    NOTE:

    You need to perform this step only once before scaling up the standby Master node.

  8. Choose Cluster > Services > HDFS > Instance.
  9. Record the business IP address of NameNode (Standby). When upgrading the specifications of the active Master node, record the business IP address of NameNode (Active). Figure 2 shows the location of the business IP address.

    Figure 2 Business IP address of the NameNode
    NOTE:

    Only when the cluster is an analysis cluster, you can perform 8 to 9 to record the IP addresses of the active and standby nodes.

  10. On the upper right of the Manager page, check the number next to the icon. If the number is 0, there is no running tasks in the cluster.
  11. Click Hosts. If the cluster is an analysis cluster, select the checkbox of the host corresponding to the business IP address of the NameNode recorded in 9. If the cluster is a streaming cluster, you do not need to distinguish the active and standby nodes. You only need to choose hosts for the scale-up.
  12. Choose More > Stop All Instances and wait until all instances are stopped.

    NOTE:

Scaling Up Master Node Specifications

  1. Log in to the MRS console.
  2. In the navigation pane on the left, choose Active Clusters, select the cluster for which you want to scale up Master node specifications, and click its name to switch to the cluster details page.
  3. On the Nodes tab page, select Scale Up Specifications in the Operation column of the Master node group.
  4. Select the target specifications and click Next.

    NOTE:

    Ensure that target specification resources are sufficient. Otherwise, the active node cannot be scaled up.

  5. On the Confirm page that is displayed, confirm the target node specifications and fees and click OK.
  6. Ensure that all services on the standby Master node have been stopped. For operation details, refer to 1 to 12 in the Preparing for Scaling Up Master Node Specifications part. On the Scale Up Master Node Specifications page, select Are you sure you have stopped all services on the standby Master node? and If not all services are stopped before the scale-up, data saving failure or data damage may occur. and click Submit Order.
  7. On the Warning page that is displayed, confirm again that all services on the standby Master node are stopped and click OK to start scaling up the specifications of the standby Master node.

    The node specification scale-up takes some time. Please wait. After the scale-up is successful, the cluster status changes to Scaled-up-first. Otherwise, contact O&M personnel.

  8. After the standby Master node has been scaled up successfully, start all services and set parameters on the standby Master node by referring to 1 to 11 in the Operations After the Master Node Specifications Scale-up part.
  9. After the services on the standby Master node are started, perform an active/standby NameNode switchover. Perform this step only for an analysis cluster and skip this step for a streaming cluster.

    1. Access the NameNode web UI of the active and standby nodes separately. For details about how to access the NameNode web UI, see 11.
    2. In the navigation bar on the NameNode web UI, choose Overview and record the NameNode IDs of the active and standby nodes. Do not close the page after recording.
      Figure 3 NameNode ID of the active node
    3. Log in to the ECS of any Master node and run the following command to configure environment variables:
      source /opt/Bigdata/client/bigdata_env
    4. If the Kerberos authentication is enabled for the current cluster, run the following command to authenticate the user. If the Kerberos authentication is disabled for the current cluster, skip this step.
      kinit MRS cluster user

      For example, kinit admin.

    5. Run the following command to perform an active/standby NameNode switchover:
      hdfs haadmin -failover <NameNode ID of the active node> <NameNode ID of the standby node>
    6. Go to the NameNode web UI page that is not closed in 9.b and refresh the page. You can view that the active/standby NameNode switchover is complete.
      Figure 4 NameNode

  10. Stop all services on the active Master node by referring to 1 to 12 in the Preparing for Scaling Up Master Node Specifications part.
  11. On the Scale Up Master Node Specifications page, select I confirm that all services on the standby Master node have been started. and I confirm that all services on the active Master node have been stopped, and click Submit.
  12. On the Confirm page that is displayed, confirm again that all services on the active Master node are stopped and click OK to start scaling up the specifications of the active Master node.

    The node specification scale-up takes some time. Please wait. After the scale-up is successful, the cluster status changes to Scaled-up-success. Otherwise, contact O&M personnel.

  13. Start all services and set parameters on the active Master node by referring to 1 to 11 in the Operations After the Master Node Specifications Scale-up part.
  14. On the Scale Up Master Node Specifications page, select Are you sure you have started all services on the active Master node? and click OK to complete the scale-up.

Operations After the Master Node Specifications Scale-up

  1. Log in to Manager and go to the cluster management page. For details, see Accessing MRS Manager.
  2. Click Hosts. Check basic information about the host corresponding to the business IP address of the NameNode recorded in 9 in the Preparing for Scaling Up Master Node Specifications part. If the Running Status is Good and Disk, Memory, and CPU have values, perform 9. If any of the preceding conditions is not met, go to the next step.
  3. Log in to the standby Master node remotely. For details, see Logging In to an MRS Cluster Node.
  4. Run the following command to switch to user omm:

    su - omm

  5. Run the following command to start the Agent:

    sh /opt/Bigdata/nodeagent/bin/start-agent.sh

  6. Run the following command to check whether the Agent is started successfully:

    jps | grep NodeAgent

  7. Log in to Manager and go to the cluster management page. For details, see Accessing MRS Manager.
  8. Click Hosts. Check basic information about the host corresponding to the business IP address of the NameNode recorded in 9 in the Preparing for Scaling Up Master Node Specifications part to ensure that Running Status is Good and Disk, Memory, and CPU have values.

    NOTE:

    It may take 3 minutes until the host status is normal after the Agent is started successfully. Please wait. If the host status is abnormal for a long time, contact O&M personnel.

  9. On the Manager page, click Hosts and select the checkbox of the host corresponding to the business IP address of the NameNode recorded in 9 in the Preparing for Scaling Up Master Node Specifications part.
  10. Choose More > Start All Instances and wait until all instances are started.
  11. Access the NameNode web UI and check the NameNode startup status.

    1. On FusionInsight Manager, choose Cluster > Services > HDFS > Dashboard.
    2. In the HDFS Summary column, click NameNode of the active or standby node that has been scaled up on the right of NameNode Web UI.
    3. Go to the NameNode Web UI page, choose Startup Progress in the navigation bar. After ensuring that Percent Complete is displayed as 100%, go to the next step, as shown in Figure 5.
      Figure 5 NameNode startup status
    NOTE:

    Perform 11 for an analysis cluster and skip this step for a streaming cluster.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback