This page describes how to enable Replication for the first time on an existing Cloud Data Fusion instance.
Before you begin
If your instance uses Cloud Data Fusion version 6.2.3, upgrade your instance to a supported version:
Go to the instance details:
In the Google Cloud console, go to the Cloud Data Fusion page.
Click Instances, and then click the instance's name to go to the Instance details page.
Click Upgrade > a version number > Upgrade.
For more information, see Upgrading instances and pipelines.
Enable Replication
Console
Go to the instance details:
In the Google Cloud console, go to the Cloud Data Fusion page.
Click Instances, and then click the instance's name to go to the Instance details page.
Click Add accelerators.
Click Replication.
Click Save.
cURL
Enable the Replication accelerator in your instance:
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ https://datafusion.googleapis.com/v1/projects/PROJECT_NAME/locations/LOCATION/instances/INSTANCE_NAME \ -X PATCH \ -d '{ "accelerators":[{"accelerator_type":"CDC", "state":"ENABLED"}]} '
This sample command shows how to include labels that are already applied to an instance:
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ https://datafusion.googleapis.com/v1/projects/PROJECT_NAME/locations/LOCATION/instances/INSTANCE_NAME \ -X PATCH \ -d '{ "accelerators":[{"accelerator_type":"CDC", "state":"ENABLED"}], "labels":{"KEY_1":"VALUE_1","KEY_2":"VALUE_2"}}'
Replace the following:
PROJECT_NAME
: the Google Cloud project nameLOCATION
: the location—for example,us-east1
INSTANCE_NAME
: the Cloud Data Fusion instance nameKEY_1
andVALUE_1
, etc.: keys and values of your labels
Optional: To verify the change was successful, click System Admin. Delta Assessor appears in the list of services.
The Replication tile appears on the Cloud Data Fusion home page.
Click System Admin to check the status of the Delta Assessor service. When the status is green, you can create replication jobs.
What's next
- Learn more about Replication in Cloud Data Fusion.
- Refer to the Replication API reference.
- Work through the tutorial for Replicating data from MySQL to BigQuery.
- Work through the tutorial for Replicating data from SQL Server to BigQuery.
- Work through the tutorial Replicating data from Oracle to BigQuery.