1. I created a service account. ( with bigquery.admin role )
2. created a service account key
3. set up zeppelin with service account
4. query but failed with msg ( SQL Execution returned an error! )
5. I checked out job and find error msg ( Access Denied: Permission bigquery.tables.getData denied on table ) / job owner is service account at 1
I don't know what is the problem, how can I check it ?
Any help would be appreciated.
The error message indicates that the service account used to set up Zeppelin does not have the necessary permissions to access the specific BigQuery table. To resolve this issue, you need to ensure the service account is granted the bigquery.tables.getData
permission. This permission can be assigned either at the dataset level or directly to the table, depending on your setup. Here are the steps to grant this permission at the dataset level:
Navigate to the BigQuery Section:
Select the Dataset:
Adjust Permissions:
bigquery.tables.getData
permission and allows read-only access to the dataset's tables.Verify and Test:
By following these steps, the service account should have the necessary permissions to query the BigQuery table, and you should no longer encounter the "Access Denied" error. Remember to adhere to the principle of least privilege and only grant the permissions necessary for the tasks the service account needs to perform.