cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload a file

magrat08
New Contributor II

Hi - I'm trying to upload a file, so that I can use the same in my notebook to try ML experiments with Databricks. From my workspace, I created a folder. But the option 'Create -> File' does not do anything. So not able to add any file. 

From a notebook, there is an option to upload a file to DBFS. I used that and uploaded my file, copied the path which it gave me. When I tried to use that in the python code (pandas read_csv), it gives me 'FileNotFoundError: [Errno 2] No such file or directory'. when I try to run ls command, I can see the file, but am not able to copy (using cp command) nor am I able to refer it in pandas code. 

Am not sure how to get past this error. Am using community edition.

1 ACCEPTED SOLUTION

Accepted Solutions

Walter_C
Databricks Employee
Databricks Employee
3 REPLIES 3

Walter_C
Databricks Employee
Databricks Employee

On the Folder you have created, you need to click on the 3 dots instead on the option Create and on this 3 dots you will see the option Import, here you will be able to upload the file you created.

To manage or make use of Databricks files you can use this guide for the different options https://docs.databricks.com/en/files/index.html 

magrat08
New Contributor II

The 3 dots -> Create -> Import only imports a notebook. It does not accept any files with extension .csv etc. I tried that already. As I said am using community edition.

Walter_C
Databricks Employee
Databricks Employee

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group