I am using saveAsTextFile() to store the results of a Spark job in the folder dbfs:/FileStore/my_result.
I can access to the different \"part-xxxxx\" files using the
There are a few options for downloading FileStore files to your local machine.
Easier options:
dbfs cp
command. For example: dbfs cp dbfs:/FileStore/test.txt ./test.txt
. If you want to download an entire folder of files, you can use dbfs cp -r
.https://.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:
read
calls to access chunks of the full file.