cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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

Tonny_Stark
New Contributor III

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

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now