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: 

Error when accessing the file from azure blob storage

bonyfus
New Contributor II

I am getting the following error when accessing the file in Azure blob storage

java.io.FileNotFoundException: File /10433893690638/mnt/22200/22200Ver1.sps does not exist.

Code:

ves_blob = dbutils.widgets.get("ves_blob")
try:
  dbutils.fs.ls(ves_blob )
except:
  raise FileNotFoundError("File '{f}' was not found.".format(f=ves_blob ))

If you look at the following mount the data bricks instance id attached (I assumed as this is in the url as adb-10433893690638.databricks.net)

/10433893690638/mnt/22200/22200Ver1.sps

when dbutils.fs.ls list the content I am assuming the mount path is only /mnt/22200/22200Ver1.sps.

3 REPLIES 3

-werners-
Esteemed Contributor III

that is certainly an invalid path, as the error shows.

with %fs ls /mnt you can show the directory structure of the /mnt directory, assuming the blob storage is mounted.

if not, you need to define the access ( URL etc.)

bonyfus
New Contributor II

It certainly is. I am not sure why the id is attached to the mount path. The actual mount path is /mnt/22200/22200Ver1.sps

-werners-
Esteemed Contributor III

that ID is added automatically if the file is not found.

If the file is found, it will not show up.

So whatever you put into the widget, it is not the correct path.

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