简体   繁体   English

使用 Dataform 表创建时,我收到错误消息“BigQuery:获取驱动器凭据时权限被拒绝”

[英]With Dataform table creation I get an error "BigQuery: Permission denied while getting Drive credentials"

I am using Dataform to create a table on a dataset that I have created on a Google Cloud project, but I get this error:我正在使用 Dataform 在我在 Google Cloud 项目上创建的数据集上创建一个表,但出现此错误:

"Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials." “访问被拒绝:BigQuery BigQuery:获取云端硬盘凭据时权限被拒绝。”

Why?为什么? What should I do about this?我该怎么办?

In a compiled version of a sqlx dataform file I try to create or replace a table.在 sqlx 数据格式文件的编译版本中,我尝试创建或替换一个表。

CREATE OR REPLACE TABLE my_project_id.my_data_set.my_table

I'm not using a table that reads something from Google Drive but I am creating a new one.我没有使用从 Google Drive 读取内容的表格,但我正在创建一个新表格。 The service account associated with my dataform project has Dataset Owner access rights to my_data_set, and interestingly the dataform project is able to create views, but not tables.与我的数据表单项目关联的服务帐户具有对 my_data_set 的数据集所有者访问权限,有趣的是,数据表单项目能够创建视图,但不能创建表。

I finally found a solution to this problem.我终于找到了解决这个问题的方法。 To solve this problem one has to do this:要解决这个问题,必须这样做:

  1. Check all the source tables that the dataform project has.检查数据表单项目具有的所有源表。
  2. If any of the source tables is based on a Google Drive data, such as Google Sheet, give the service account associated with the dataform project view access to it.如果任何源表基于 Google Drive 数据(例如 Google Sheet),请为与数据表单项目关联的服务帐户提供对其的查看访问权限。

Interestingly, dataform is not able to create table if it does not have access rights to the source of the tables that it reads.有趣的是,如果 dataform 没有访问它读取的表的源的权限,则它无法创建表。

GCloud Coud SQL Postgres:“错误:表的权限被拒绝<div id="text_translate"><p>我在 Google Cloud SQL 中有一个由用户“api”创建的 postgres 数据库。 现在我想使用我自己的用户读取该数据库上的一些数据。 我可以连接到数据库,但是当我运行时</p><pre>SELECT * FROM data;</pre><p> 我得到错误:</p><pre> ERROR: permission denied for table data</pre><hr><p> 编辑</p><p>我尝试GRANT ALL PRIVILEGES ON DATABASE website TO sev; 但这没有用。 定义数据库的 SQL 如下所示:</p><pre> CREATE DATABASE website WITH OWNER = cloudsqlsuperuser ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF8' LC_CTYPE = 'en_US.UTF8' TABLESPACE = pg_default CONNECTION LIMIT = -1; GRANT ALL ON DATABASE website TO cloudsqlsuperuser; GRANT TEMPORARY, CONNECT ON DATABASE website TO PUBLIC; GRANT ALL ON DATABASE website TO sev;</pre></div>"<table> </table> - GCloud Coud SQL Postgres: "ERROR: permission denied for table <table>"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google BigQuery 中的查询表有错误“访问被拒绝:BigQuery BigQuery:通配文件模式时权限被拒绝。” - Query table in Google BigQuery has error "Access Denied: BigQuery BigQuery: Permission denied while globbing file pattern." 查询以在 bigquery 中获取表分区元数据时出错 - Getting error while querying to get tables partition metadata in bigquery 执行 Google Dataform 工作流程会导致错误访问被拒绝 - Execution of Google Dataform workflow gives error access denied 通过 SSH 连接服务器时出现错误 Permission denied (publickey) - Getting an error Permission denied (publickey) when connecting the server via SSH 错误:7 PERMISSION_DENIED:您的应用程序已使用来自 Google Cloud SDK 的最终用户凭据进行了身份验证 - Error: 7 PERMISSION_DENIED: Your application has authenticated using end user credentials from the Google Cloud SDK GCloud Coud SQL Postgres:“错误:表的权限被拒绝<div id="text_translate"><p>我在 Google Cloud SQL 中有一个由用户“api”创建的 postgres 数据库。 现在我想使用我自己的用户读取该数据库上的一些数据。 我可以连接到数据库,但是当我运行时</p><pre>SELECT * FROM data;</pre><p> 我得到错误:</p><pre> ERROR: permission denied for table data</pre><hr><p> 编辑</p><p>我尝试GRANT ALL PRIVILEGES ON DATABASE website TO sev; 但这没有用。 定义数据库的 SQL 如下所示:</p><pre> CREATE DATABASE website WITH OWNER = cloudsqlsuperuser ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF8' LC_CTYPE = 'en_US.UTF8' TABLESPACE = pg_default CONNECTION LIMIT = -1; GRANT ALL ON DATABASE website TO cloudsqlsuperuser; GRANT TEMPORARY, CONNECT ON DATABASE website TO PUBLIC; GRANT ALL ON DATABASE website TO sev;</pre></div>"<table> </table> - GCloud Coud SQL Postgres: "ERROR: permission denied for table <table>" 在创建 model 时,我在 BigQuery 中收到“CREATE MODEL OPTIONS() 格式参数丢失”错误? - I am getting "CREATE MODEL OPTIONS() format parameter is missing" error in BigQuery while creating a model? 使用 MySQL NDB Cluster,访问从节点时出现权限被拒绝的错误 - Using MySQL NDB Cluster, I get a permission denied error when accessing slave nodes 部署 Gen2 云时出现权限被拒绝错误 Function - Permission Denied Error while deploying Gen2 Cloud Function 尝试使用 Ionic4 和 Angular 6 将文档添加到 firebase 时出错 - 错误:PERMISSION_DENIED:权限被拒绝 - Getting error when trying to add document to firebase using Ionic4 and Angular 6 - Error: PERMISSION_DENIED: Permission denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM