Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To transfer a file stored in dbfs:/FileStore to your local machine, you can use the following steps:

  1. Open a notebook in Databricks and navigate to the dbfs:/FileStore directory where the file is stored.

  2. Right-click on the file and select "Export".

  3. In the Export dialog box, select "Download" as the export method and click "Export".

  4. The file will be downloaded to your local machine's default download location. You can then move it to the desired location on your local machine.

Alternatively, you can use the Databricks CLI to retrieve the file from the dbfs:/FileStore directory. To do so, follow these steps:

  1. Install the Databricks CLI on your local machine.

  2. Open a command prompt or terminal window and run the following command to authenticate with your Databricks workspace:

databricks configure --token
  1. Enter your Databricks personal access token when prompted.

  2. Once authenticated, run the following command to download the file from the dbfs:/FileStore directory:

databricks fs cp dbfs:/FileStore/path/to/file local/path/to/file
  1. The file will be downloaded to the specified local path.