cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.