简体   繁体   中英

Unable to save file from Databricks to Desktop

I installed the CLI rest api and now I want to save a test file to my local desktop. This is the command I have but it throws me a syntax error:

dbfs cp dbfs:/myname/test.pptx /Users/myname/Desktop. 

SyntaxError: invalid syntax
    dbfs cp dbfs:/myname/test.pptx /Users/myname/Desktop

Note, I am on a Mac, so hopefully the path is correct. What am I doing wrong?

To download files from DBFS to local machine, you can checkout similar SO thread, which addressing similar issue:

Not able to copy file from DBFS to local desktop in Databricks

OR

Alternately, you can use GUI tool called DBFS Explorer to download the files on you local machine.

DBFS Explorer was created as a quick way to upload and download files to the Databricks filesystem (DBFS). This will work with both AWS and Azure instances of Databricks. You will need to create a bearer token in the web interface in order to connect.

Reference: DBFS Explorer for Databricks

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM