[ 
https://issues.apache.org/jira/browse/BEAM-7246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16880101#comment-16880101
 ] 

Raheel Masood commented on BEAM-7246:
-------------------------------------

[~altay] Trying to see how to connect to Spanner from Python SDK. Unfortunately 
I am a bit stuck here.

Can you please point me out how do you guys provide credentials to google cloud 
services from Python SDK

For example, I am trying 


{code:java}
from google.cloud import spanner

spanner_client = spanner.Client()
{code}
This code assumes that there is an environment variable 
*GOOGLE_APPLICATION_CREDENTIALS* is set which in my case is not.

I tried to download *credentials.json* file from GCP and provided that 
credentials file in my code. That gaves me 403 permissions error on 
spanner.create operation.

Thanks

 

> Create a Spanner IO for Python
> ------------------------------
>
>                 Key: BEAM-7246
>                 URL: https://issues.apache.org/jira/browse/BEAM-7246
>             Project: Beam
>          Issue Type: Bug
>          Components: io-python-gcp
>            Reporter: Reuven Lax
>            Assignee: Shehzaad Nakhoda
>            Priority: Major
>
> Add I/O support for Google Cloud Spanner for the Python SDK (Batch Only).
> Testing in this work item will be in the form of DirectRunner tests and 
> manual testing.
> Integration and performance tests are a separate work item (not included 
> here).
> See https://beam.apache.org/documentation/io/built-in/. The goal is to add 
> Google Clound Spanner to the Database column for the Python/Batch row.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to