Github user bzz commented on the issue:

    https://github.com/apache/zeppelin/pull/1170
  
    While running locally I got:
    
    ```
    ERROR [2016-07-29 15:05:09,591] ({pool-2-thread-2} 
BigQueryInterpreter.java[open]:142) - Cannot open connection
    java.io.IOException: The Application Default Credentials are not available. 
They are available if running in Google Compute Engine. Otherwise, the 
environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to 
a file defining the credentials. See 
https://developers.google.com/accounts/docs/application-default-credentials for 
more information.
            at 
com.google.api.client.googleapis.auth.oauth2.DefaultCredentialProvider.getDefaultCredential(DefaultCredentialProvider.java:95)
            at 
com.google.api.client.googleapis.auth.oauth2.GoogleCredential.getApplicationDefault(GoogleCredential.java:213)
            at 
org.apache.zeppelin.bigquery.BigQueryInterpreter.createAuthorizedClient(BigQueryInterpreter.java:155)
            at 
org.apache.zeppelin.bigquery.BigQueryInterpreter.open(BigQueryInterpreter.java:138)
            at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
            at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:93)
            at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:383)
            at org.apache.zeppelin.scheduler.Job.run(Job.java:176)
            at 
org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
            at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
            at java.util.concurrent.FutureTask.run(FutureTask.java:262)
            at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
            at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
            at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:744)
     INFO [2016-07-29 15:05:09,593] ({pool-2-thread-2} 
BigQueryInterpreter.java[close]:281) - Close bqsql connection!
    ```
    
    @babupe do you think it would make sense to expose this though interpreter 
configuration properties, same as `project id`, so people could override it? Or 
may be it would be easier to use OAuth service account?
    
    In any way, we need to document this properly for people to know that there 
are 
[pre-requests](https://developers.google.com/identity/protocols/application-default-credentials),
 before using this interpreter.
    
    I will submit the PR with docs


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to