question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Querying Public Data set

See original GitHub issue

I’m trying to run a Query trough the public Data in BigQuery using Java and Eclipse. When I run my code, I get:

HTTP ERROR 500

Problem accessing /Getbigquery. Reason: 
    Server Error


Caused by:
com.google.cloud.bigquery.BigQueryException: Access Denied: Project bigquery-public-data: The user MyAdress@gmail.com does not have bigquery.jobs.create permission in project bigquery-public-data.

I the IAM my Mail Address has the Owner Role for BigQuery.

What I’m worried about is my BigQuery Console. The Public Data is not listed in my Project but separately and I can’t click on “copy table” to copy it to my Project because it says: “Required parameter is missing”.

Isn’t it possible to query the public Dataset with Java from Eclipse or is there something else I must think of?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
oaustegardcommented, Mar 25, 2020

A bit of necromancing here: I just encountered the very same issue, not when issuing any form of CREATE statement; rather just SELECTing data from a public dataset - the problem appears to have been that I had not yet selected a Project when attempting to execute the query. As soon as I did, the error went away. Google could do a lot better job catching that edge case and instructing the user accordingly.

3reactions
michaelbausorcommented, Aug 24, 2017

This is the key part of the error: The user MyAdress@gmail.com does not have bigquery.jobs.create permission in project bigquery-public-data.

You will not be able to run a create query on the project bigquery-public-data. The user at MyAdress@gmail.com will have the Owner Role for BigQuery in your project, but not the public bigquery-public-data project. Try changing the project id set in your code to your own project - you should then be able to run the create query.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BigQuery public datasets - Google Cloud
You can access BigQuery public datasets by using the Google Cloud console, by using the bq command-line tool, or by making calls to...
Read more >
How to access BigQuery Public Data Sets - Optimize Smart
The first method to access the BigQuery public data sets ... Note: You need to create or select a project before you start...
Read more >
Accessing BigQuery Public Datasets in BigQuery - PopSQL
Explore Your BigQuery Public Dataset in PopSQL ... Once connected, open a new query in PopSQL and you can query your public dataset:...
Read more >
Explore Public Datasets with Google BigQuery and DataStudio
Sample of the public dataset from Google Big Query (Screenshot by Author ... As with all data in the Google Cloud Public Datasets...
Read more >
Best Google BigQuery Public Datasets for 2022 - Hevo Data
In simple terms, a public dataset is any sort of dataset stored in Bigquery. It is then made available to users through the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found