google-cloud-platform - 谷歌默认服务帐户没有 bq 实用程序的权限

标签 google-cloud-platform google-bigquery

我有一个附加了默认服务帐户的虚拟机实例。

在该实例上执行 bq ls 时会抛出如下错误:

(airflow) [root@airflow-qa-master ~]# bq ls

BigQuery error in ls operation: Insufficient Permission

因此,我向下面列出的默认服务帐户授予了其他权限:

BigQuery Admin

BigQuery Data Editor

BigQuery Data Owner

BigQuery Data Viewer

Compute Admin

Compute Storage Admin

Editor

Owner

仍然抛出无效凭据问题。

最佳答案

实例的默认范围不允许 BigQuery 访问。 API 在 GCE 上是否可用有两个考虑因素,首先是附加的服务帐户是否有权执行这些操作。其次是是否允许实例执行这些操作。

您可以使用 this part of their documentation 更改实例的范围。

关于google-cloud-platform - 谷歌默认服务帐户没有 bq 实用程序的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53107178/

相关文章:

google-cloud-platform - 服务帐户需要哪些范围/角色才能提交容器构建器作业?

python - 如何转换 Google AppEngine db.TimeProperty 中的时间字符串?

go - Golang客户端库对Apache Airflow的支持

kubernetes - 如何从 Helm 文件创建配置映射?

json - 有没有办法使用Python将bigquery返回的结果转换为Json格式?

google-bigquery - 在 BigQuery 中合并两个不相关的数据集

kubernetes - Kubeflow-羽衣甘蓝 :- How to integrate kubeflow-kale extension to run pipelines on a seperate standalone cluster of Kubeflow pipelines

google-bigquery - 阻止用户删除 BigQuery 表

python - 尝试使用 BigQuery 获取 PyPI 的下载统计信息时出现无法找到数据集错误

google-analytics - GA360访问ID上的平均Analytics(分析)功能,用于LatencyTracking