Use Migration Service (MMS) to migrate data from a data source to MaxCompute.
Migration job types
MMS supports the following types of migration jobs:
-
Full database migration: migrates a single database.
-
Partial migration (multiple tables): migrates one or more tables.
-
Partial migration (multiple partitions): migrates one or more partitions.
Migration rules
-
By default, destination projects, schemas, and table names are automatically mapped. To modify mappings, click Modify in the Actions column for the target database, or click the database name to open the table list and click Modify for a specific table. Default rules:
-
Destination project: Defaults to the project configured for the data source.
-
Schema: Defaults to the source database name.
-
Table name: Defaults to the source table name.
-
-
A migration job migrates only tables and partitions not in the "Completed" state. View and modify the migration status in the Status column of the table or partition list.
Procedure
Before you begin, configure a data source.
-
Log in to the MaxCompute console and select a region in the upper-left corner.
-
In the left-side navigation pane, choose .
-
On the Migration Service page, click the Data Source tab.
In the Actions column for the target data source, click Migration Management to view the databases.
-
In the Actions column of the target database, click Full DB Migrate or Partial Migration, and then configure the parameters.
-
If you select Full DB Migrate, you can configure a blacklist to exclude specific tables.
-
If you select Partial Migration, you go to the database page. On the Table List and Partitions tabs, select the tables or partitions to migrate, then click Create Migration Job.
-
You can also enable scheduled migration. When enabled, MMS runs a daily migration job on your schedule, migrating only tables or partitions in the "Unmigrated" state. View migration status in the Status column of the table or partition list.
NoteIf the data source is MaxCompute
-
On the Migration Management page, click Migrate Project Properties in the upper-right corner to migrate MaxCompute project properties.
This copies all parameters from the source project to the destination project.
-
To migrate Resources and UDFs, click Full Migration in the Full DB Migrate column, then select full database migration, Resource, or UDF as the migration object.
-
-
Click Submit to create the migration job.
-
On the Migration Service page, click the Migration Job tab.
Check the migration job status. If a job fails:
-
Click Details in the Actions column for the failed job. On the Migration Task List page, click Actions in the Log column for the corresponding task to view the failure reason.
-
Click Actions in the Retry column for the failed job to rerun it.
NoteMigration involves three stages: schema migration, data migration, and data validation. A failed task restarts from the data migration stage after a Retry operation.
-