- Resource: MigrationExecution
- CloudSQLMigrationConfig
- CdcConfig
- CloudSQLConnectionConfig
- State
- Phase
- Methods
Resource: MigrationExecution
The details of a migration execution resource.
JSON representation |
---|
{ "name": string, "createTime": string, "endTime": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The relative resource name of the migration execution, in the following form: |
createTime |
Output only. The time when the migration execution was started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Output only. The time when the migration execution finished. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
state |
Output only. The current state of the migration execution. |
phase |
Output only. The current phase of the migration execution. |
stateMessage |
Output only. Additional information about the current state of the migration execution. |
Union field migration_config . Configuration information required by Dataproc Metastore for starting the migration process migration_config can be only one of the following: |
|
cloudSqlMigrationConfig |
Configuration information specific to migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. |
CloudSQLMigrationConfig
Configuration information for migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
JSON representation |
---|
{ "cdcConfig": { object ( |
Fields | |
---|---|
cdcConfig |
Required. Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to using its backend database after the cutover phase of migration. |
cloudSqlConnectionConfig |
Required. Configuration information to establish customer database connection before the cutover phase of migration |
CdcConfig
Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore.
JSON representation |
---|
{ "vpcNetwork": string, "subnetIpRange": string, "username": string, "password": string, "reverseProxySubnet": string, "bucket": string, "rootPath": string } |
Fields | |
---|---|
vpcNetwork |
Required. Fully qualified name of the Cloud SQL instance's VPC network or the shared VPC network that Datastream will peer to, in the following format: |
subnetIpRange |
Required. A /29 CIDR IP range for peering with datastream. |
username |
Required. The username that the Datastream service should use for the MySQL connection. |
password |
Required. Input only. The password for the user that Datastream service should use for the MySQL connection. This field is not returned on request. |
reverseProxySubnet |
Required. The URL of the subnetwork resource to create the VM instance hosting the reverse proxy in. More context in https://cloud.google.com/datastream/docs/private-connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the request that Datastream will peer to and should be in the same region as Datastream, in the following format. |
bucket |
Optional. The bucket to write the intermediate stream event data in. The bucket name must be without any prefix like "gs://". See the bucket naming requirements. This field is optional. If not set, the Artifacts Cloud Storage bucket will be used. |
rootPath |
Optional. The root path inside the Cloud Storage bucket. The stream event data will be written to this path. The default value is |
CloudSQLConnectionConfig
Configuration information to establish customer database connection before the cutover phase of migration
JSON representation |
---|
{ "instanceConnectionName": string, "ipAddress": string, "port": integer, "hiveDatabaseName": string, "username": string, "password": string, "proxySubnet": string, "natSubnet": string } |
Fields | |
---|---|
instanceConnectionName |
Required. Cloud SQL database connection name (projectId:region:instance_name) |
ipAddress |
Required. The private IP address of the Cloud SQL instance. |
port |
Required. The network port of the database. |
hiveDatabaseName |
Required. The hive database name. |
username |
Required. The username that Dataproc Metastore service will use to connect to the database. |
password |
Required. Input only. The password for the user that Dataproc Metastore service will be using to connect to the database. This field is not returned on request. |
proxySubnet |
Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. The subnetwork should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, |
natSubnet |
Required. The relative resource name of the subnetwork to be used for Private Service Connect. Note that this cannot be a regular subnet and is used only for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet size must be at least |
State
The current state of the migration execution.
Enums | |
---|---|
STATE_UNSPECIFIED |
The state of the migration execution is unknown. |
STARTING |
The migration execution is starting. |
RUNNING |
The migration execution is running. |
CANCELLING |
The migration execution is in the process of being cancelled. |
AWAITING_USER_ACTION |
The migration execution is awaiting user action. |
SUCCEEDED |
The migration execution has completed successfully. |
FAILED |
The migration execution has failed. |
CANCELLED |
The migration execution is cancelled. |
DELETING |
The migration execution is being deleted. |
Phase
The current phase of the migration execution.
Enums | |
---|---|
PHASE_UNSPECIFIED |
The phase of the migration execution is unknown. |
REPLICATION |
Replication phase refers to the migration phase when Dataproc Metastore is running a pipeline to replicate changes in the customer database to its backend database. During this phase, Dataproc Metastore uses the customer database as the hive metastore backend database. |
CUTOVER |
Cutover phase refers to the migration phase when Dataproc Metastore switches to using its own backend database. Migration enters this phase when customer is done migrating all their clusters/workloads to Dataproc Metastore and triggers CompleteMigration . |
Methods |
|
---|---|
|
Deletes a single migration execution. |
|
Gets details of a single migration execution. |
|
Lists migration executions on a service. |