Problem
You want to download files stored on DBFS root directly from the web. This can be useful when working with files like logs that are being generated and stored in DBFS, such as log delivery, init script logs, or tcp dumps.
Cause
You cannot download files directly from DBFS if DBFS File Browser is disabled in the workspace admin settings.
Solution
To download files from DBFS via the web browser:
- Verify that a workspace admin has enabled DBFS File Browser. Follow the steps in the Manage the DBFS file browser (AWS | Azure | GCP) documentation.
- Click Catalog in the left nav bar.
- Click Browse DBFS.
- Go to the location where the file is located
- Right click the file you want to download.
- Click Move.
- Move the file to the FileStore folder.
- Once the file is in the FileStore folder, you can access it with a custom URL. Enter the following URL into your browser, where <workspace-url> (AWS | Azure | GCP) is the Databricks workspace URL and <file-name> is the name of the file you want to download:
https://<workspace-url>/files/<file-name>
- Submit the URL to download the file.