Google Spanner
Version 24.3.9120
Version 24.3.9120
Google Spanner
You can use the Google Spanner connector from the CData Sync application to capture data from Google Spanner and move it to any supported destination. To do so, you need to add the connector, authenticate to the connector, and complete your connection.
Add the Google Spanner Connector
To enable Sync to use data from Google Spanner, you first must add the connector, as follows:
-
Open the Connections page of the Sync dashboard.
-
Click Add Connection to open the Select Connectors page.
-
Click the Sources tab and locate the Google Spanner row.
-
Click the Configure Connection icon at the end of that row to open the New Connection page. If the Configure Connection icon is not available, click the Download Connector icon to install the Google Spanner connector. For more information about installing new connectors, see Connections.
Authenticate to Google Spanner
After you add the connector, you need to set the required properties.
-
Connection Name - Enter a connection name of your choice.
-
Instance Id - Enter the identifier (Id) of the Google Spanner instance to which you want to connect.
-
Database - Enter the name of the Google Spanner database to which you want to connect.
-
Project Id - Enter the project Id of the project where your Google Spanner instance resides.
CData Sync supports authenticating to Google Spanner in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.
-
OAuth (default)
OAuth
CData Sync provides an embedded OAuth application with which to connect. To use the application, select OAuth for Auth Scheme. No additional properties are required.
OAuth JWT
To connect with a Google Spanner account, set the following properties:
-
OAuth Client Id - Enter the client Id that you were assigned when you registered your application with an OAuth authorization server.
-
OAuth Client Secret - Enter the client secret that you were assigned when you registered your application with an OAuth authorization server.
-
OAuth JWT Cert – Enter your Java web tokens (JWT) certificate store.
-
OAuth JWT Cert Type – Enter the type of key store that contains your JWT Certificate. The default type is PEMKEY_BLOB.
-
OAuth JWT Issuer – Enter the issuer of your Java web token. Typically, the issuer is either the client Id or the email address of the OAuth application.
-
OAuth JWT Cert Password (optional) – Enter the password for your OAuth JWT certificate.
-
OAuth JWT Cert Subject (optional) – Enter the subject of your OAuth JWT certificate.
-
OAuth JWT Subject (optional) – Enter the user subject for which the application is requesting delegated access.
-
OAuth JWT Subject Type (optional) - Select the subject type (enterprise or user) for the JWT authentication. The default type is enterprise.
-
OAuth JWT Public Key Id (optional) – Enter the Id of the public key for JWT.
GCP Instance Account
When you run CData Sync on a GCP virtual machine, Sync can authenticate by using the service account that is tied to the virtual machine. Select GCPInstanceAccount for Auth Scheme to use that account. No additional properties are required.
Complete Your Connection
To complete your connection:
-
For Database Dialect, select the dialect type for the Google Spanner database. The default dialect is GoogleStandardSQL.
-
Define advanced connection settings on the Advanced tab. (In most cases, though, you should not need these settings.)
-
If you authenticate with OAuth, click Connect to Google Spanner to connect to your Google Spanner account.
-
Click Create & Test to create your connection.
More Information
For more information about interactions between CData Sync and Google Spanner, see Google Spanner Connector for CData Sync.