There are a few options for downloading FileStore files to your local machine.
Easier options:
- Install the Databricks CLI, configure it with your Databricks credentials, and use the CLI’s
dbfs cpcommand. For example:dbfs cp dbfs:/FileStore/test.txt ./test.txt. If you want to download an entire folder of files, you can usedbfs cp -r. - From a browser signed into Databricks, navigate to
https://<YOUR_DATABRICKS_INSTANCE_NAME>.cloud.databricks.com/files/. If you are using Databricks Community Edition then you may need to use a slightly different path. This download method described in more detail in the FileStore docs.
Advanced options:
- Use the DBFS REST API. You can access file contents using the
readAPI call. To download a large file, you may need to issue multiplereadcalls to access chunks of the full file.