This topic describes how to migrate data from BigQuery on Google Cloud Platform (GCP) to Alibaba Cloud MaxCompute over the Internet.
Prerequisites
Category | Platform | Requirement | Reference |
---|---|---|---|
Environment and data | Google Cloud Platform |
|
If you do not have the relevant environment and datasets, see the following references
for preparation:
|
Alibaba Cloud |
|
If you do not have the relevant environment, see the following references for preparation:
|
|
Account | Google Cloud Platform | An Identity and Access Management (IAM) user is created and granted the permissions to access Google Cloud Storage. | IAM permissions for JSON methods |
Alibaba Cloud | A Resource Access Management (RAM) user and a RAM role are created. The RAM user is granted the read and write permissions on OSS buckets and the online migration permissions. | Create a RAM user and STS authorization | |
Region | Google Cloud Platform | N/A | N/A |
Alibaba Cloud | The OSS bucket and the MaxCompute project are in the same region. | N/A |
Background information

No. | Description |
---|---|
① | Export datasets from BigQuery to Google Cloud Storage. |
② | Migrate data from Google Cloud Storage to an OSS bucket by using the Data Online Migration service of OSS. |
③ | Migrate data from the OSS bucket to a MaxCompute project in the same region, and then verify the integrity and accuracy of the migrated data. |
Step 1: Export datasets from BigQuery to Google Cloud Storage
Use the bq command-line tool to run the bq extract
command to export datasets from BigQuery to Google Cloud Storage.
Step 2: Migrate the exported data from Google Cloud Storage to OSS
You can use the Data Online Migration service to migrate data from Google Cloud Storage to OSS. For more information, see Migrate data from Google Cloud Platform to OSS. The Data Online Migration service is in public preview. Before you use the service, you must submit a ticket to contact the Customer Service to activate the service.
Step 3: Migrate data from the OSS bucket to a MaxCompute project in the same region
You can execute the LOAD statement of MaxCompute to migrate data from an OSS bucket to a MaxCompute project in the same region.
The LOAD statement supports Security Token Service (STS) and AccessKey for authentication. If you use AccessKey for authentication, you must provide the AccessKey ID and AccessKey secret of your account in plaintext. STS authentication is highly secure because it does not expose the AccessKey information. In this section, STS authentication is used as an example to show how to migrate data.