How do I download a file from Azure's DBFS?

Jeff vG 86 Reputation points
2021-07-23T12:24:38.43+00:00

I'd like to get a copy of df.csv downloaded to my local system. How would I do that?

117481-image.png

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,890 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vaibhav Chaudhari 38,471 Reputation points
    2021-07-23T13:06:23.227+00:00

    Modify the URL slightly, press enter and you get the file downloaded to your local.

    Files stored in /FileStore are accessible in your web browser at https://<databricks-instance>/files/.

    For example, the file you stored in /FileStore/my-stuff/my-file.txt is accessible at https://<databricks-instance>/files/my-stuff/my-file.txt.

    However, if there is ?o= in the deployment URL, for example,
    https://<databricks-instance>/?o=6280049833xxxxxx, replace
    https://<databricks-instance>/files/my-stuff/my-file.txt with
    https://<databricks-instance>/files/my-stuff/my-file.txt?o=###### where the number after o= is the same as in your URL.

    E.g.
    https://adb-xxx.x.azuredatabricks.net/files/df.csv?o=xxx

    Reference:
    https://docs.databricks.com/data/filestore.html#save-a-file-to-filestore
    https://stackoverflow.com/questions/66685638/databricks-download-a-dbfs-filestore-file-to-my-local-machine


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    4 people found this answer helpful.

0 additional answers

Sort by: Most helpful