【发布时间】:2019-12-27 19:18:20
【问题描述】:
起初尝试使用 bigquery 客户端运行 python 脚本并收到此错误:
403 GET https://bigquery.googleapis.com/bigquery/v2/projects/**/datasets/newdata/tables/rentaldata: Request had insufficient authentication scopes
然后我尝试运行 bq 客户端:
bq query --service_account ****-compute@developer.gserviceaccount.com --nouse_legacy_sql 'select geopoint from `**.newdata.rentaldata` limit 10'
得到了这个:
Waiting on bqjob_rce6575eeefae333_0000016f48c66575_1 ... (0s) Current status: UNKNOWNBigQuery error in query operation: Insufficient Permission
服务帐户具有 bigquery 可能的所有角色,并且也是项目的所有者(用于测试),有什么想法吗?
bigquery 的 API 处于活动状态。
【问题讨论】:
-
最可能的原因是 GCE 实例没有 BigQuery API 权限。如果是这样,您可以停止它,编辑范围并重新启动它。
标签: google-cloud-platform google-bigquery google-compute-engine