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
On this page

Migrating Full Metadata

Updated on 2025-01-17 GMT+08:00

Migrate all metadata from source databases to Huawei Cloud DLI.

NOTICE:
  • MgC cannot migrate metadata of transaction tables (those with the transactional=true field in DDL statements).
  • If a large number of tables are to be migrated or a single table contains a large number of columns, the migration may take a long time.

Procedure

  1. Sign in to the MgC console. In the navigation pane, under Project, select your big data migration project from the drop-down list.
  2. In the navigation pane on the left, choose Migrate > Big Data Migration.
  3. In the upper right corner of the page, click Create Migration Task.

  4. Select MaxCompute for Source Component, Data Lake Insight (DLI) for Target Component, and Full metadata migration for Task Type, and click Next.

  5. Set parameters required for creating a full metadata migration task based on Table 1.

    Table 1 Parameters required for creating a full metadata migration task

    Area

    Parameter

    Configuration

    Basic Settings

    Task Name

    The default name is Full-metadata-migration-from-MaxCompute-to-DLI-4 random characters (including letters and numbers). You can also customize a name.

    MgC Agent

    Select the MgC Agent you connected to MgC in Preparations.

    Source Settings

    Source Connection

    Select the source connection you created.

    MaxCompute Parameters

    The parameters are optional and usually left blank. If needed, you can configure the parameters by referring to MaxCompute Documentation.

    Data Scope

    By database

    Enter the names of databases to be migrated in the Include Databases text box. Click Add to add more entries. A maximum of 10 databases can be added.

    To exclude certain tables from the migration, download the template in CSV format under Exclude Tables, add information about these tables to the template, and upload the template to MgC. For details, see steps 2 to 5.

    By table

    1. Download the template in CSV format.
    2. Open the downloaded CSV template file with Notepad.
      CAUTION:

      Do not use Excel to edit the CSV template file. The template file edited and saved in Excel cannot be identified by MgC.

    3. Retain the first line in the CSV template file. From the second line onwards, enter the information about tables to be migrated in the format of {MaxCompute project name},{Table name}. MaxCompute project name refers to the name of the MaxCompute project to be migrated. Table name refers to the data table to be migrated.
      NOTICE:
      • Use commas (,) to separate the MaxCompute project name and the table name in each line. Do not use spaces or other separators.
      • After adding the information about a table, press Enter to start a new line.
    4. After all table information is added, save the changes to the CSV file.
    5. Upload the edited and saved CSV file to MgC.

    Enterprise Project ID (Optional)

    Enter the ID of the enterprise project to which the target DLI databases belong. For details about how to obtain an enterprise project ID, see How Do I Obtain an Enterprise Project ID?

    Convert Internal Table To External

    • If you set this option to No, the migrated data will be stored in DLI.
    • If you set this option to Yes, the migrated data will be stored in the OBS path you specify.

    Target Settings

    Overwriting Policy

    Select the policy for processing tables that already exist at the target.

    • Skip: Such tables will be skipped during the migration, and no operation will be performed on them.
    • Rebuild: Such tables and the data in them will be deleted from the target, and new empty tables will be created at the target based on the source table settings.

    Target Connection

    Select the DLI connection with a SQL queue you created.

    CAUTION:

    Do not select the connection with a general queue configured.

    Custom Parameters

    Configure the parameters as needed. For details, see Configuration parameter description and Custom Parameters.

    Table Type

    Select an option as required.

    File Format

    Select an option as required.

    Compression Format

    Select an option as required.

    Migration Settings

    Concurrency

    Set the number of concurrent migration subtasks. The default value is 3. The value ranges from 1 to 10.

    (Optional) Table Path Mapping

    Map storage paths for metadata of external tables between the source and the target. This can help smoothly move the metadata of MaxCompute external tables from Alibaba OSS to Huawei Cloud OBS.

    The mapped paths in Huawei Cloud OBS must be created in advance. In the paths, the bucket names can be different, and other parts must be the same.

    Assume that at the source, external tables are stored in oss://oss-cn-hangzhou.aliyuncs.com/ali-test/documents/example_table. In the path, oss-cn-hangzhou.aliyuncs.com is the endpoint of the region where the involved bucket resides, ali-test is the bucket name, documents is the root directory of the bucket, and example_table stores metadata of external tables. We call it table directory below. When you configure a mapped target path, the root directory and the table directory must remain unchanged, for example, obs://hw-test/documents/example_table.

    Example:

    • Source: oss://oss-cn-hangzhou.aliyuncs.com/ali-test/documents/example_table
    • Target: obs://hw-test/documents/example_table
    NOTE:

    The preceding path mapping is only an example.

  6. After the configuration is complete, execute the task.

    NOTICE:
    • A migration task can be executed repeatedly. Each time a migration task is executed, a task execution is generated.
    • You can click the task name to modify the task configuration.
    • You can select Run immediately and click Save to create the task and execute it immediately. You can view the created task on the Tasks page.

    • You can also click Save to just create the task. You can view the created task on the Tasks page. To execute the task, click Execute in the Operation column.

  7. After the migration task is executed, click View Executions in the Operation column. On the Task Executions tab, you can view the details of the running task execution and all historical executions.

    Click View in the Progress column. On the displayed page, view and export the task execution results.

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