我試圖使用bq
命令行工具將數據從GCS鬥裝載至BigQuery和我收到以下錯誤信息:的BigQuery授權
BigQuery error in load operation: Access Denied: Job mythical-maxim-293:bqjob_r11765e0cd9ceb52b_000001427694f0e1_1: RUN_JOB
我正在使用的服務帳戶(與私鑰)進行驗證。我跟着授予服務帳戶訪問級別以下鏈接:
https://developers.google.com/bigquery/loading-data-into-bigquery https://developers.google.com/bigquery/access-control
服務帳戶的電子郵件被授予WRITE訪問與BigQuery資料集,並讀取與GCS分區的訪問權限。
注意:將服務帳戶電子郵件作爲編寫者添加到項目中,解決了這個問題,但這對我的情況並不可行。我不允許請求項目級寫權限,但BigQuery和GCS(只讀)。
謝謝!
您是否可以複製並粘貼您嘗試執行的確切命令? – vegemite4me
BQ \ --service_account [email protected]account.com \ --service_account_credential_file〜/ .bigquery/identity.xplenty.cred \ --service_account_private_key_file〜/ .bigquery/identity.xplenty.p12 \ - service_account_private_key_password notasecret \ --project_id mythical-maxim-293 \ 加載my_data_set_1.my_table_1 gs://xptest/test.csv –
您是否允許您的服務帳戶讀取存儲桶中的對象?桶讀取權限不一定意味着對象讀取權限。 –