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 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

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