Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the credentials used by Datalab for accessing data?

I have access to a BigQuery table and I can use it from BigQuery console or gcloud command line. But I am unable to write basic queries against it in Datalab and get an access denied error.

like image 324
Dan Holevoet Avatar asked Oct 13 '15 04:10

Dan Holevoet


People also ask

What is datalab in GCP?

Use Cloud Datalab to easily explore, visualize, analyze, and transform data using familiar languages, such as Python and SQL, interactively. Pre-installed Jupyter introductory, sample, and tutorial notebooks, show you how to: Access, analyze, monitor, and visualize data.

Is datalab free?

There is no charge for using Google Cloud Datalab. However, you do pay for any Google Cloud Platform resources you use with Cloud Datalab, for example: Compute resources: You incur costs from the time of creation to the time of deletion of the Cloud Datalab VM instance.

Is datalab deprecated?

Datalab was deprecated on September 2, 2022. Vertex AI Workbench provides a notebook-based environment that offers capabilities beyond Datalab. We recommend that you use Vertex AI Workbench for new projects and migrate your Datalab notebooks to Vertex AI Workbench.


1 Answers

Datalab is intended for use in a team environment. Notebooks may contain results of code execution (e.g. a BigQuery SQL query) and are accessible to members of the project. Hence, Datalab uses the App Engine service account in your project to access data. This ensures uniform access for viewing and executing notebooks and minimizes the risk of accidental disclosure of data. If you do not control access to data, you may need to ask that access be granted to the service account. You can find the service account in the Developers Console by clicking Permissions in the left navigation bar and locating the App Engine service account. Currently, Datalab does not use individual user's credentials.

like image 175
Dan Holevoet Avatar answered Nov 15 '22 16:11

Dan Holevoet