FileNotFoundError: [Errno 2] No such file or directory:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-05-2023 06:51 AM
I have the following error code in databricks when I want to unzip files
FileNotFoundError: [Errno 2] No such file or directory:
but the file is there I already tried several ways and nothing works
I have tried modifying by placing
/dbfs/mnt/
dbfs/mnt/
dbfs:/mnt/
- Labels:
-
Directory
-
Error Code
-
File
-
Filestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-05-2023 08:17 AM
@Alfredo Vallejosโ It looks you are using zip command, we need to use unzip command, can you please recheck
please find below curl snippet
%sh curl https://resources.lendingclub.com/LoanStats3a.csv.zip --output /tmp/LoanStats3a.csv.zip
unzip /tmp/LoanStats3a.csv.zip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-05-2023 03:27 PM
Hello, I already tried to do it the way you tell me, but when it comes to decompressing it stays there for a long time and does not decompress anything, I even put the example that you shared with me that is in the Databricks documentation, my concern is that I will also have to unzip .tar files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ04-06-2023 05:50 AM
@Alfredo Vallejosโ then your file is tar.gz file right, have you tried tar command instead of unzip

