简体   繁体   English

Pentaho - Big Query [Simba][BigQueryJDBCDriver](100032) 执行查询作业时出错。 消息:BIGQUERY_API_ERR

[英]Pentaho - Big Query [Simba][BigQueryJDBCDriver](100032) Error executing query job. Message: BIGQUERY_API_ERR

In pentaho I get an error when I read a BigQuery table with a "Table Entry", I have these considerations:在 pentaho 中,当我读取带有“表条目”的 BigQuery 表时出现错误,我有以下注意事项:

  1. This table was created from a Google Drive sheet with the service account此表是使用服务帐户从 Google Drive 表创建的
  2. I can read this table with "Google Sheet Plugins" [1]: https://i.stack.imgur.com/q9dl0.png [2]: https://i.stack.imgur.com/gCxQK.png我可以使用“Google 表格插件”[1] 阅读此表: https://i.stack.imgur.com/q9dl0.png [2]: https://i.stack.imgur.com/gCxQK.png
2022/07/29 21:20:36 - Select.0 - ERROR (version 8.1.0.0-365, build 8.1.0.0-365 from 2018-04-30 09.42.24 by buildguy) : An error occurred, processing will be stopped: 
2022/07/29 21:20:36 - Select.0 - An error occurred executing SQL: 
2022/07/29 21:20:36 - Select.0 - select 1  from `ms-data-warehouse.ms_Dev_Staging.ET_ods_hour`
2022/07/29 21:20:36 - Select.0 - [Simba][BigQueryJDBCDriver](100032) Error executing query job. Message: BIGQUERY_API_ERR
2022/07/29 21:20:36 - Select.0 - ERROR (version 8.1.0.0-365, build 8.1.0.0-365 from 2018-04-30 09.42.24 by buildguy) : Error initializing step [Select]
2022/07/29 21:20:36 - insert drive - ERROR (version 8.1.0.0-365, build 8.1.0.0-365 from 2018-04-30 09.42.24 by buildguy) : Step [Select.0] failed to initialize!
2022/07/29 21:20:36 - Select.0 - Finished reading query, closing connection.
2022/07/29 21:20:36 - Spoon - ERROR (version 8.1.0.0-365, build 8.1.0.0-365 from 2018-04-30 09.42.24 by buildguy) : insert drive: preparing transformation execution failed
2022/07/29 21:20:36 - Spoon - ERROR (version 8.1.0.0-365, build 8.1.0.0-365 from 2018-04-30 09.42.24 by buildguy) : org.pentaho.di.core.exception.KettleException: 
2022/07/29 21:20:36 - Spoon - We failed to initialize at least one step.  Execution can not begin!

Your second screenshot says that it doesn't have the Drive access .您的第二个屏幕截图显示it doesn't have the Drive access

BigQuery doesn't keep the credential for accessing the Google Drive, instead, BigQuery uses the "current user" credential trying to access Google Drive. BigQuery 不保留访问 Google Drive 的凭据,而是使用“当前用户”凭据尝试访问 Google Drive。

Apparently the "service account" has the Google Drive access (in order to create that table) but either your account or the account used to setup the Simba BigQueryJDBCDriver doesn't have the access to the Google Drive file.显然,“服务帐户”具有 Google Drive 访问权限(以便创建该表),但您的帐户或用于设置 Simba BigQueryJDBCDriver 的帐户无权访问 Google Drive 文件。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM