简体   繁体   English

将表从 Google BigQuery 导出到 Google Cloud Storage 时出现权限错误

[英]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.

相关问题 从 Google Cloud Storage 加载 csv 文件时出现 BigQuery 错误 - BigQuery error when loading csv file from Google Cloud Storage 将数据从 Google Cloud Storage 导出到 Amazon S3 - Exporting data from Google Cloud Storage to Amazon S3 错误:模块“google.cloud.bigquery_storage”没有属性“BigQueryReadClient” - Error: module 'google.cloud.bigquery_storage' has no attribute 'BigQueryReadClient' 从云 function 生成签名 url 时出现 Google 存储权限错误 - Google storage permissions error while generating signed url from cloud function 如何将 BigQuery 视图作为 csv 文件传输到 Google Cloud Storage 存储桶 - How to Transfer a BigQuery view to a Google Cloud Storage bucket as a csv file 无法从 Google Cloud SQL 导出到 GCS - Fail exporting from Google Cloud SQL to GCS 使用联合查询将 bigquery 表与 google cloud postgres 表合并 - Merge bigquery table with google cloud postgres table with federated query 不清楚从 pandas 上传到 Google BigQuery 表时的错误消息 - Unclear on error message in upload from pandas to Google BigQuery table Azure Synapse 从 BigQuery 复制数据,源错误 [HY000] [Microsoft][BigQuery] (131) 无法使用 Google BigQuery 存储进行身份验证 API - Azure Synapse Copy Data from BigQuery, Source ERROR [HY000] [Microsoft][BigQuery] (131) Unable to authenticate with Google BigQuery Storage API 将文件上传到谷歌云存储时出错 - Error uploading file to google cloud storage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM