El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

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

Restoring Metadata

Updated on 2022-02-22 GMT+08:00

Scenario

Metadata needs to be recovered in the following scenarios:

  • Data is modified or deleted unexpectedly and needs to be restored.
  • After a critical operation (such as an upgrade or critical data adjustment) is performed on metadata components, an exception occurs or the operation does not achieve the expected result. All modules are faulty and become unavailable.
  • Data is migrated to a new cluster.

You can create a metadata restoration task on MRS. The restoration tasks can be created manually only.

NOTICE:
  • Data restoration can be performed only when the system version during data backup is consistent with the current system version.
  • To restore the data when services are normal, manually back up the latest management data first and then restore the data. Otherwise, the data that is generated after the data backup and before the data restoration will be lost.
  • Use the OMS data and LdapServer data backed up at the same time to restore data. Otherwise, the service and operation may fail.
  • By default, MRS clusters use DBService to store Hive metadata.

Impact on the System

  • Data generated between the backup time and restoration time is lost after data restoration.
  • After the data is restored, the configuration of the components that depend on DBService may expire and these components need to be restarted.

Prerequisites

  • You have checked whether the data in the OMS and LdapServer backup files is backed up at the same time.
  • You have checked whether the status of the OMS resource and the LdapServer instance is normal. If the status is abnormal, data restoration cannot be performed.
  • You have checked whether the status of the cluster hosts and services is normal. If the status is abnormal, data restoration cannot be performed.
  • You have checked whether the cluster host topologies during data restoration and data backup are the same. If they are different, data restoration cannot be performed and you need to back up data again.
  • You have checked the services added to the cluster during data restoration and data backup are the same. If they are different, data restoration cannot be performed and you need to back up data again.
  • You have checked whether the status of the active and standby DBService instances is normal. If the status is abnormal, data restoration cannot be performed.
  • You have stopped the upper-layer applications depending on the cluster.
  • On MRS console, you have stopped all the NameNode role instances whose data is to be recovered. Other HDFS role instances must be running properly. After data is recovered, the NameNode role instances need to be restarted. The NameNode role instances cannot be accessed before the restart.
  • Check whether NameNode backup files are stored in Data storage path/LocalBackup/ on the active management node.
  • You have synchronized IAM users (on the Dashboard tab page, click Click to synchronize on the right side of IAM User Sync to synchronize IAM users).

Procedure

  1. Check the location of backup data.

    1. On the cluster details page, choose Backups & Restorations > Backups.
      NOTE:

      For MRS 3.x, see Recovering Data.

    2. In the row where the specified backup task resides, choose More > View History in the Operation column to display the historical execution records of the backup task. In the displayed window, locate a specified success backup record. In the Operation column, click View Backup Path to open the task execution logs. Find the following information and view the path:
      • Backup Object: indicates a backup data source.
      • Backup Path: indicates the full path where the backup files are stored.
    3. Select the correct path, and manually copy the full path of backup files in Backup Path.

  2. Create a restoration task.

    1. On the cluster details page, choose Backups & Restorations > Restorations.
      NOTE:

      For MRS 3.x, see Recovering Data.

    2. On the page that is displayed, click Create Restoration Task.
    3. Set Task Name to the name of the restoration task.

  3. Select restoration sources.

    In the Configuration area, select the metadata component whose data is to be restored.

  4. Set the restoration parameters.

    1. Set Path Type to a backup directory type.
    2. The settings vary according to backup directory types:
      • LocalDir: indicates that the backup files are stored on the local disk of the active management node. If you select LocalDir, you need to set Source Path to specify the full path of the backup file. For example, Data storage path/LocalBackup/Backup task name_Task creation time/Data source_Task execution time/Version number_Data source_Task execution time.tar.gz.
      • LocalHDFS: indicates that the backup files are stored in the HDFS directory of the current cluster. If you select LocalHDFS, set the following parameters:
        • Source Path: indicates the full HDFS path of a backup file, for example, Backup path/Backup task name_Task creation time/Version_Data source_Task execution time.tar.gz.
        • Source Instance Name: indicates the name of NameService corresponding to the backup directory when a restoration task is being executed. The default value is hacluster.
    3. Click OK.

  5. Execute the restoration task.

    In the restoration task list, locate the row where the created task resides, and click Start in the Operation column.

    • After the recovery is successful, the progress bar is in green.
    • After the recovery is successful, the recovery task cannot be executed again.
    • If the restoration task fails during the first execution, rectify the fault and try to execute the task again by clicking Start.

  6. If the following metadata type is restored, perform the corresponding operations:

    • If the OMS and LdapServer metadata is restored, go to 7.
    • If DBService data is restored, no further action is required.
    • If NameNode data is restored, choose Components > HDFS > More > Restart Service on the MRS cluster details page. No further action is required.

  7. Restart the service for the recovered data to take effect

    1. On the MRS cluster details page, click Components.
    2. Choose LdapServer > More > Restart Service and click OK. Wait until the LdapServer service is restarted successfully.
    3. Log in to the active management node. For details, see Determining Active and Standby Management Nodes of Manager.
    4. Run the following command to restart the OMS:

      sh ${BIGDATA_HOME}/om-0.0.1/sbin/restart-oms.sh

      The command has been executed successfully if the following information is displayed:

      start HA successfully.
    5. On the cluster details page, click Components, choose KrbServer > More > Synchronize Configuration. Deselect Restart the services and instances whose configurations have expired. Click Yes and wait until the KrbServer service configuration is synchronized and restarted successfully.
    6. On the cluster details page, choose Configuration > Synchronize Configuration in the upper right corner, deselect Restart the service or instance whose configurations have expired, and click Yes. Wait until the cluster configuration is synchronized successfully.
    7. On the cluster details page, choose Management Operations > Stop All Components in the upper right corner. After the cluster is stopped, choose Management Operations > Start All Components, and wait for the cluster to start.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback