Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run program "gcloud" #46

Closed
AndreasTA-AW opened this issue Nov 23, 2021 · 6 comments
Closed

Cannot run program "gcloud" #46

AndreasTA-AW opened this issue Nov 23, 2021 · 6 comments

Comments

@AndreasTA-AW
Copy link

Hi,

I'm running with a profile that is using bigquery and a service account. But when I start the docker container it says "Cannot run program "gcloud"". Is gcloud necessary even if I use a service account?

Cheers

@AndreasTA-AW
Copy link
Author

Looked in the code and I don't specify the project. https://github.com/metriql/metriql/blob/master/src/main/java/com/metriql/warehouse/bigquery/BigQueryDataSource.kt#L82

Got another error when I did actually specify it:

Exception in thread "main" /root/.config/gcloud/application_default_credentials.json not found connecting the BigQuery.

@AndreasTA-AW
Copy link
Author

Ok, so I used keyfile instead of keyFile, which DBT is fine with but not Metriql apparantly :) might be good to do a lowercase check on that one.

https://github.com/metriql/metriql/blob/master/src/main/java/com/metriql/warehouse/bigquery/BigQueryDataSource.kt#L71

@AndreasTA-AW
Copy link
Author

keyfile has to be lowercase, otherwise I can't run DBT. Either I'm doing something wrong or you should change to lowercase by default.

@buremba
Copy link
Member

buremba commented Nov 23, 2021

Yes, you're right. There was a pending PR and it's now merged. Can you please try again? #43

@AndreasTA-AW
Copy link
Author

I will try to do it during the day or tomorrow

@AndreasTA-AW
Copy link
Author

Seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants