-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Specify project id for spanner to avro export #85
Copy link
Copy link
Closed
Description
I'd like to run the "Cloud Spanner to Cloud Storage Avro" template in a different project than the project my spanner instance lives.
Currently I cannot specify the project in the template:
DataflowTemplates/src/main/java/com/google/cloud/teleport/spanner/ExportPipeline.java
Lines 80 to 84 in 9a95f05
| SpannerConfig spannerConfig = | |
| SpannerConfig.create() | |
| .withHost(options.getSpannerHost()) | |
| .withInstanceId(options.getInstanceId()) | |
| .withDatabaseId(options.getDatabaseId()); |
It is however possible in the spanner to text export:
DataflowTemplates/src/main/java/com/google/cloud/teleport/templates/SpannerToText.java
Lines 91 to 95 in 9a95f05
| SpannerConfig spannerConfig = | |
| SpannerConfig.create() | |
| .withProjectId(options.getSpannerProjectId()) | |
| .withInstanceId(options.getSpannerInstanceId()) | |
| .withDatabaseId(options.getSpannerDatabaseId()); |
Is this something that can be added?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels