cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

FileNotFoundError: [Errno 2] No such file or directory:

Tonny_Stark
New Contributor II

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/

error

3 REPLIES 3

karthik_p
Esteemed Contributor

@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

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

image

karthik_p
Esteemed Contributor

@Alfredo Vallejos​ then your file is tar.gz file right, have you tried tar command instead of unzip

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.