[英]Permissions Error Exporting a table from Google BigQuery to Google Cloud Storage
Getting the following error as of 2017-07-08 when exporting a table to Cloud Storage.将表导出到 Cloud Storage 时,在 2017 年 7 月 8 日出现以下错误。
Access Denied: BigQuery BigQuery: Permission denied while writing data访问被拒绝:BigQuery BigQuery:写入数据时权限被拒绝
Working fine before that date, haven't changed anything in the project, big query or cloud storage.在该日期之前工作正常,没有更改项目、大查询或云存储中的任何内容。
JobId: alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b JobId:alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b
Getting the following error as of 2017-07-08 when exporting a table to Cloud Storage.自2017年7月8日起,在将表导出到Cloud Storage时出现以下错误。
Access Denied: BigQuery BigQuery: Permission denied while writing data拒绝访问:BigQuery BigQuery:写入数据时拒绝权限
Working fine before that date, haven't changed anything in the project, big query or cloud storage.在此日期之前工作正常,没有更改项目,大型查询或云存储中的任何内容。
JobId: alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b职位编号:alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b
Getting the following error as of 2017-07-08 when exporting a table to Cloud Storage.自2017年7月8日起,在将表导出到Cloud Storage时出现以下错误。
Access Denied: BigQuery BigQuery: Permission denied while writing data拒绝访问:BigQuery BigQuery:写入数据时拒绝权限
Working fine before that date, haven't changed anything in the project, big query or cloud storage.在此日期之前工作正常,没有更改项目,大型查询或云存储中的任何内容。
JobId: alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b职位编号:alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b
Getting the following error as of 2017-07-08 when exporting a table to Cloud Storage.自2017年7月8日起,在将表导出到Cloud Storage时出现以下错误。
Access Denied: BigQuery BigQuery: Permission denied while writing data拒绝访问:BigQuery BigQuery:写入数据时拒绝权限
Working fine before that date, haven't changed anything in the project, big query or cloud storage.在此日期之前工作正常,没有更改项目,大型查询或云存储中的任何内容。
JobId: alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b职位编号:alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b
Make sure the service account has the right permissions to do things on that bucket.确保服务帐户具有在该存储桶上执行操作的正确权限。 It's confusing because even if the bucket is public, that doesn't allow write access from just plain old anyone.这很令人困惑,因为即使存储桶是公开的,也不允许普通老任何人进行写访问。
I had the same error.我有同样的错误。 All my IAM grants looked correct.我所有的 IAM 赠款看起来都是正确的。
It turns out it was failing because the SA has permission to create files (object.Creator) but not to overwrite/replace files in the bucket.事实证明它失败了,因为 SA 有权创建文件 (object.Creator) 但不能覆盖/替换存储桶中的文件。 Because a file by the same name already existed in the bucket it failed until I removed the file (or you can give it permission to overwrite the file).因为存储桶中已经存在同名文件,所以它失败了,直到我删除了该文件(或者您可以授予它覆盖该文件的权限)。
The error is confusing/misleading though.但是,该错误令人困惑/具有误导性。
Access Denied: BigQuery BigQuery: Permission denied while writing data."访问被拒绝:BigQuery BigQuery:写入数据时权限被拒绝。”
Using bq
cli to show the job details was helpful in debugging this issue.使用bq
cli 显示作业详细信息有助于调试此问题。
bq show --format=prettyjson --job=true <<job-id>>
Getting the following error as of 2017-07-08 when exporting a table to Cloud Storage.自2017年7月8日起,在将表导出到Cloud Storage时出现以下错误。
Access Denied: BigQuery BigQuery: Permission denied while writing data拒绝访问:BigQuery BigQuery:写入数据时拒绝权限
Working fine before that date, haven't changed anything in the project, big query or cloud storage.在此日期之前工作正常,没有更改项目,大型查询或云存储中的任何内容。
JobId: alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b职位编号:alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.