cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

DBFS with Google Cloud Storage(GCS)

rajib76
New Contributor II

Does DBFS support GCS?

1 ACCEPTED SOLUTION

Accepted Solutions

Hubert-Dudek
Esteemed Contributor III

Yes you need just to create service account for databricks and than assign storage admin role to bucket. After that you can mount GCS standard way:

bucket_name = "<bucket-name>"
mount_name = "<mount-name>"
dbutils.fs.mount("gs://%s" % bucket_name, "/mnt/%s" % mount_name)
display(dbutils.fs.ls("/mnt/%s" % mount_name))

more info here https://docs.gcp.databricks.com/data/data-sources/google/gcs.html

View solution in original post

1 REPLY 1

Hubert-Dudek
Esteemed Contributor III

Yes you need just to create service account for databricks and than assign storage admin role to bucket. After that you can mount GCS standard way:

bucket_name = "<bucket-name>"
mount_name = "<mount-name>"
dbutils.fs.mount("gs://%s" % bucket_name, "/mnt/%s" % mount_name)
display(dbutils.fs.ls("/mnt/%s" % mount_name))

more info here https://docs.gcp.databricks.com/data/data-sources/google/gcs.html

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now