tswast commented on issue #945: Google BigQuery Support
URL: 
https://github.com/apache/incubator-superset/issues/945#issuecomment-384775275
 
 
   @swamy16 : @darylerwin is correct. To use default credentials you must set 
the `GOOGLE_APPLICATION_CREDENTIALS` environment variable.
   
   As an alternative, I've filed 
https://github.com/mxmzdlv/pybigquery/issues/14 to allow specifying path to 
service account key file via the connection string.
   
   **Linux or macOS**
   
   Replace [PATH] with the file path of the JSON file that contains your 
service account key.
   
   ```
   export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
   ```
   
   For example:
   
   ```
   export 
GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/service-account-file.json"
   ```
   
   **Windows**
   
   Replace [PATH] with the file path of the JSON file that contains your 
service account key, and [FILE_NAME] with the filename.
   
   With PowerShell:
   
   ```
   $env:GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
   ```
   
   For example:
   
   ```
   
$env:GOOGLE_APPLICATION_CREDENTIALS="C:\Users\username\Downloads\[FILE_NAME].json"
   ```
   
   With command prompt:
   
   ```
   set GOOGLE_APPLICATION_CREDENTIALS=[PATH]
   ```
   
   (From https://cloud.google.com/bigquery/docs/reference/libraries)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to