All Products
Search
Document Center

DataWorks:Batch synchronization from a full Hologres database to MaxCompute

Last Updated:Feb 26, 2026

Data Integration supports the offline synchronization of entire databases from sources such as AnalyticDB for MySQL 3.0, ClickHouse, Hologres, MySQL, and PolarDB to MaxCompute. This topic uses the offline synchronization of a Hologres database to MaxCompute as an example to describe how to perform a one-time offline synchronization of an entire database.

Prerequisites

Limits

Synchronizing source data to MaxCompute external tables is not supported.

Procedure

I. Select the sync task type

  1. Go to the Data Integration page.

    Log on to the DataWorks console. In the top navigation bar, select the desired region. In the left-side navigation pane, choose Data Integration > Data Integration. On the page that appears, select the desired workspace from the drop-down list and click Go to Data Integration.

  2. In the navigation pane on the left, click Sync Task. At the top of the page, click Create Sync Task. Configure the basic information as follows.

    • Source and Destination: HologresMaxCompute

    • New Task Name: Enter a name for the sync task.

    • Sync Type: Offline Database.

    • For Sync Steps, select Full Synchronization and Incremental Synchronization.

II. Configure the network and resources

  1. In the Network and Resource Configuration section, select the Resource Group for the sync task. You can also assign CUs under Task Resource Usage.

  2. Set Source Data Source to the Hologres data source and Destination Data Source to the MaxCompute data source. Then, click Test Connectivity.image

  3. Once you confirm that the source and destination data sources are connected, click Next.

III. Select the databases and tables to synchronize

In the Source Table area, select the tables to sync from the source data source. Click the image icon to move the tables to the Selected Tables list.

image

IV. Set full and incremental synchronization control

  1. Configure the full and incremental sync type for the task.

    • If you select both Full initialization and Incremental synchronization in the Synchronization Mode, the task defaults to a one-time full sync and recurring incremental syncs. This setting cannot be changed.

    • If you selected Full initialization in the Synchronization Mode, you can configure the task for a one-time full sync or a recurring full sync.

    • If you select Incremental synchronization in the Synchronization Mode, you can configure the task as a one-time or recurring incremental sync.

      Note

      The following steps use a one-time full sync and recurring incremental sync task as an example.

  2. Configure recurring schedule parameters.

    If you want the task to run on a recurring schedule, click Configure Scheduling Parameters for Periodical Scheduling.

V. Map to destination tables

After you select the tables to sync in the previous step, they are automatically displayed on this page. The destination tables have a status of 'mapping to be refreshed'. You must define the mapping between the source and destination tables, which specifies how data is read from the source tables and written to the destination tables. Then, click Refresh to proceed. You can refresh the mapping immediately or customize the destination table rules first.

Note
  • You can select the tables to synchronize and click Batch Refresh Mapping. If no mapping rule is configured, the default table naming rule is ${SourceSchemaName}_${TableName}. If a table with the same name does not exist in the destination, it is automatically created.

  • Because this is a recurring schedule, you must define its properties. These properties include Scheduling Cycle, Scheduling Time, and Scheduling Resource Group. The scheduling configuration for this sync task is the same as the node scheduling configuration in Data Development. For more information, see Node Scheduling.

  • Specify a WHERE clause for the Incremental Condition to filter the source data. Enter only the content of the clause, not the WHERE keyword. If a recurring schedule is enabled, you can use system parameter variables.

  • In the Customize Mapping Rules column, click Edit to customize the destination table naming rule.

    You can use built-in variables and manually entered strings to create the destination table name. You can also edit the built-in variables. For example, you can create a new table naming rule that adds a suffix to the source table name to form the destination table name.

1. Edit mapping of field data types

A sync task maps source field types to destination field types by default. To customize this mapping, click Edit Mapping of Field Data Types in the upper-right corner of the table. After you configure the mapping, click Apply and Refresh Mapping.

2. Edit the destination table schema and assign field values

If a destination table has a status of To Be Created, you can add fields to its schema. Follow these steps:

  1. Add fields to the destination table.

    • To add a field to a single table, click the image.png button in the Target Table Name column.

    • To add fields in batches, select all tables to sync. At the bottom of the table, choose Batch Modify > Destination Table Schema - Batch Modify and Add Field.

  2. Assign values to the fields. You can use the following operations to assign values to the fields that you just added.

    • To assign values to a single table: In the Destination Table Field Assignment column, click Configure.

    • To assign values in batches, at the bottom of the list, choose Batch Modify > Destination Table Field Assignment to assign values to identical fields across multiple destination tables.

    Note

    You can assign constants or variables. Click the image icon to switch between assignment modes.

3. Custom advanced parameters

For fine-grained control over the task, click Configure in the Custom Advanced Parameters column.

Important

Modify these parameters only if you fully understand what they do. Incorrect settings can cause unexpected errors or data quality issues.

VI. Configure advanced parameters

The sync task provides several parameters that you can modify as needed. For example, you can limit the maximum number of connections to prevent the sync task from exerting too much pressure on your production database.

Note

Modify these parameters only if you fully understand what they do. Incorrect settings can cause unexpected errors or data quality issues.

  1. In the upper-right corner of the page, click Configure Advanced Parameters to go to the advanced parameter configuration page.

  2. On the Configure Advanced Parameters page, modify the parameter values.

VII. Configure the resource group

In the upper-right corner of the page, click Resource Group Configuration to view or switch the resource group for the current task.

VIII. Run the sync task

  1. After you finish the configuration, click Complete at the bottom of the page.

  2. On the Data Integration > Synchronization Task page, find the created sync task and click Deploy in the Operation column.

  3. In the Tasks, click the Name/ID of the task to view the execution details.

IX. Configure alerts

After the task runs, a scheduled job is generated in the Operation Center. To prevent task errors from causing data sync latency, you can set an alarm policy for the sync task.

  1. In the Tasks, find the running sync task. In the Actions column, choose More > Edit to open the task editing page.

  2. Click Next. Then, click Configure Alert Rule in the upper-right corner of the page to open the alarm settings page.

  3. In the Scheduling Information column, click the scheduled job to open the task details page in the Operation Center and retrieve the Task ID.

  4. In the navigation pane on the left of the Operation Center, choose Node Alarm > Alarm > Rule Management to go to the Rule Management page.

  5. Click Create Custom Rule and set Rule Object, Trigger Condition, and Alert Details. For more information, see Rule management.

    In the Rule Object field, search for the target task using the obtained Task ID and set an alert.

Sync task O&M

View the task running status

After you create a sync task, you can view the list of created sync tasks and their basic information on the Sync Task page.

image

  • In the Actions column, you can Start or Stop a sync task. Under More, you can also perform other operations, such as Edit and View.

  • For a running task, you can view its status in the Execution Overview section. You can also click the task's overview area to view its execution details.

    image

    For an offline synchronization task of an entire database from Hologres to MaxCompute:

    • If a task's sync step is Full Synchronization, this section displays the schema migration and full synchronization.

    • If the sync step for your task is Incremental Synchronization, the schema migration and incremental synchronization steps appear here.

    • If your task performs both Full Synchronization and Incremental Synchronization, the status for schema migration, full synchronization, and incremental synchronization is displayed here.

Rerun a task

  • Click Rerun to rerun the task without changing the task configuration.

    Effect: This operation reruns a one-time task or updates the properties of a recurring task.

  • To rerun a task after modifying it by adding or removing tables, edit the task and click Complete. The task status then changes to Apply Update. Click Apply Update to immediately trigger a rerun of the modified task.

    Effect: Only the new tables are synced. Tables that were previously synced are not synced again.

  • After you edit a task (for example, by changing a destination table name or switching to a different destination table) and click Complete, the available operation for the task changes to Apply Update. Click Apply Update to immediately trigger a rerun of the modified task.

    Effect: The modified tables are synced. Unmodified tables are not synced again.

Use cases

If you have downstream data dependencies and need to perform data development operations, you can set upstream and downstream dependencies for the node as described in Node scheduling configuration. You can view the corresponding recurring task node information in the Scheduling Configuration column.

image