All Products
Search
Document Center

DataHub:Overview

Last Updated:Oct 27, 2025

Data synchronization of DataHub

DataHub provides data source and sink features, also known as data synchronization. You can use this feature to synchronize data from DataHub topics to other Alibaba Cloud services in real time or near real time. This process enables data to flow between different Alibaba Cloud services. DataHub supports data synchronization to MaxCompute (formerly ODPS), AnalyticDB for MySQL (ADS), ApsaraDB RDS, Tablestore, Object Storage Service (OSS), Elasticsearch, and Function Compute. You can write data to DataHub once, configure data synchronization, and then use the data in any of the supported cloud services to create a complete, closed-loop data solution.

Supported Alibaba Cloud services

Note:

  • For MaxCompute, data is synchronized every 5 minutes or when a batch reaches 64 MB.

  • For Tablestore, OSS, Elasticsearch, Function Compute, or Hologres, data is synchronized every 20 seconds or when a batch reaches 4 MB.

  • For MySQL, ApsaraDB RDS, or AnalyticDB for MySQL 3.0, data is synchronized every 20 seconds or when a batch reaches 512 KB.

Destination service

Supported topic types

Timeliness

VPC supported

MaxCompute

TUPLE / BLOB

Near real-time, 5-minute latency

No

AnalyticDB for MySQL

TUPLE

Real-time

No

ApsaraDB RDS

TUPLE

Real-time

Yes

Tablestore

TUPLE

Real-time

No

Object Storage Service (OSS)

TUPLE / BLOB

Real-time

No

ElasticSearch

TUPLE

Real-time

Yes

Function Compute

TUPLE / BLOB

Real-time

No

Hologres

TUPLE

Real-time

No

Usage notes

  1. When you synchronize data, use Alibaba Cloud services that are in the same region. This practice helps avoid network connectivity issues and reduces network latency between regions.

  2. Due to network isolation in Alibaba Cloud, you must use the internal endpoint (classic network) of the destination service during configuration. Synchronization over the public internet is not supported.

  3. DataHub data synchronization supports only at-least-once semantics. In rare cases, such as a network error, this may result in a small amount of duplicate data at the destination service. You must handle data deduplication at the destination.

  4. When you create a sync task, DataHub automatically attaches a SubscriptionId to the task. This ID records the read point in DataHub, not the synchronization point. Do not modify this SubscriptionId.

  5. Only the owner or creator of a DataHub topic has the permission to create a connector (sync task).

IP whitelists

Important

The IP whitelists are subject to change. If you add the IP addresses from this document to your whitelist but still receive an error that an IP address is not in the whitelist, submit a ticket to obtain the latest IP whitelists.

Region

Classic network whitelist

VPC whitelist

China (Hangzhou)

10.130.203.0/24

10.130.208.0/24

10.130.210.0/24

10.130.213.0/24

10.186.213.0/24

10.32.103.0/24

10.32.104.0/24

10.32.177.0/24

10.32.94.0/24

10.32.95.0/24

10.32.96.0/24

10.32.97.0/24

10.32.98.0/24

10.32.99.0/24

10.5.35.0/24

11.115.89.0/24

11.194.216.0/24

11.194.217.0/24

11.194.247.0/24

11.194.248.0/24

11.197.14.0/24

11.223.199.0/24

100.104.191.0/24

China (Shanghai)

11.199.218.0/24

11.199.219.0/24

26.76.154.0/24

26.76.155.0/24

100.104.136.0/24

China (Beijing)

11.204.155.0/24

11.204.158.0/24

11.204.161.0/24

11.204.162.0/24

11.218.245.0/24

11.220.203.0/24

11.220.204.0/24

11.220.216.0/24

11.220.217.0/24

11.220.237.0/24

11.220.238.0/24

11.220.240.0/24

11.220.242.0/24

11.223.107.0/24

100.104.33.0/24

China (Shenzhen)

10.58.213.0/24

10.58.219.0/24

11.114.243.0/24

26.41.109.0/24

26.41.119.0/24

26.74.38.0/24

100.104.55.0/24

Singapore

11.112.208.0/24

11.195.209.0/24

11.197.63.0/24

26.53.11.0/24

26.59.42.0/24

26.77.111.0/24

26.79.102.0/24

26.79.92.0/24

100.104.163.0/24

China North 2 Ali Gov 1

11.199.246.0/24

11.199.247.0/24

100.104.254.0/24

China (Zhangjiakou)

10.2.165.0/24

10.93.87.0/24

11.113.55.0/24

11.114.126.0/24

11.196.52.0/24

11.196.53.0/24

11.207.155.0/24

11.57.215.0/24

100.104.195.0/24

Malaysia (Kuala Lumpur)

11.204.39.0/24

11.204.40.0/24

11.204.41.0/24

11.195.105.0/24

11.194.226.0/24

11.194.44.0/24

11.48.249.0/24

11.48.250.0/24

100.104.13.0/24

China (Hong Kong)

11.119.176.0/24

26.49.143.0/24

26.49.144.0/24

26.53.105.0/24

26.53.112.0/24

26.55.135.0/24

26.73.76.0/24

100.104.166.0/24

China East 2 Finance

10.0.4.0/24

10.0.5.0/24

10.130.163.0/24

11.197.111.0/24

11.197.120.0/24

100.104.220.0/24

Germany (Frankfurt)

10.250.235.0/24

10.254.223.0/24

10.254.224.0/24

10.71.0.0/24

11.195.132.0/24

26.78.19.0/24

100.104.100.0/24

US (Silicon Valley)

11.199.218.0/24

11.199.219.0/24

26.76.154.0/24

26.76.155.0/24

100.104.235.0/24

Service whitelist

MaxCompute lets you configure a project-level IP whitelist. If you configure an IP whitelist, DataHub cannot synchronize data to MaxCompute. To resolve this issue, MaxCompute provides a service whitelist feature. You must add the DataHub service name to the MaxCompute service whitelist to allow DataHub to synchronize data to MaxCompute.

The service name for DataHub is DataHub. You can set the service whitelist using the software development kit (SDK) or odpscmd.

To set the whitelist using the SDK, see the following example:

public static void setServiceName() throws OdpsException {
    String endpoint = "";
    String project = "";
    String accessId = "";
    String accessKey = "";

    Account account = new AliyunAccount(accessId, accessKey);
    Odps odps = new Odps(account);
    odps.setEndpoint(endpoint);
    odps.setDefaultProject(project);

    Map<String, String> prop = new HashMap<>();
    // Add the DataHub service name to the MaxCompute service whitelist. To add multiple services, separate them with commas. Each time you set this property, it overwrites the previous setting.
    prop.put("odps.security.ip.whitelist.services", "DataHub");
    Group group = new Groups(odps).get("groupName");
    group.updateProject(project, null, null, prop);

    // Check if the current MaxCompute service whitelist is set as expected.
    prop = odps.projects().get(project).getAllProperties();
    System.out.println("current service list: " + prop.get("odps.security.ip.whitelist.services"));
}

To set the whitelist using odpscmd, see the following example:

After you start odpscmd, run the following command to apply the configuration.

setproject odps.security.ip.whitelist.services=DataHub;

After the configuration is complete, you can verify that the configuration was successful.

setproject;
## If the output contains the odps.security.ip.whitelist.services=DataHub configuration item, the setting was successful.