问题
Since a few days ago, I've been getting the following error when running any query on the GHTorrent and SOTorrent datasets on BigQuery:
Access Denied: Project ghtorrent-bq: User does not have bigquery.jobs.create permission in project ghtorrent-bq.
The error shows up even for the simplest queries, such as SELECT * FROM 'ghtorrent-bq.ght.issues' LIMIT 1000
. The same query worked without any problems until a few days ago, and I have no idea what might cause this new behaviour.
回答1:
The **ghtorrent-bq**
and **sotorrent-org**
are projects with public datasets. Therefore, you should be able to access its data as long as you are compliant with the dataset permissions. You can check it as follows (in the example I will be using the ghtorrent-bq
project and ght
dataset):
Click at the project, in the bottom left side of the BigQuery console
Select the dataset, in this case I selected
ght
Below the query editor, click SHARE DATASET
Now, under the tab DATASET PERMISSIONS you can see the authorised menmber and each role
Click the BigQuery Data Viewer role, you can see that one of the members is allAuthenticatedUsers
Therefore, if you are authenticated with a google account using BigQuery, you should be able to see the data within the dataset.
The next point, and usual cause of this error, you should check if you selected the project. I was able to reproduce your error when not selecting the project. Inside the BigQuery Console, on the upper right side of the screen, confirm if there is a project selected -if not, it will be written Select Project. After selecting the project, you should have the permission to run a query against the data within these datasets.
回答2:
You need to select a project, in the bottom left side of the BigQuery console
来源:https://stackoverflow.com/questions/61726865/access-denied-user-does-not-have-bigquery-jobs-create-permission