DBFS with Google Cloud Storage(GCS)

rajib76
New Contributor II

Does DBFS support GCS?

Hubert-Dudek
Databricks MVP

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


My blog: https://databrickster.medium.com/

View solution in original post

Is it possibile Also with the community version of Databricks