- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 02:46 PM
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2025 06:05 AM
Can you try the approach mentioned in https://ganeshchandrasekaran.com/databricks-how-to-load-data-from-google-drive-github-c98d6b34d1b5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 04:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 06:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2025 06:05 AM
Can you try the approach mentioned in https://ganeshchandrasekaran.com/databricks-how-to-load-data-from-google-drive-github-c98d6b34d1b5

