Error when accessing the file from azure blob storage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 05:22 AM
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.
- Labels:
-
Azure
-
Azure blob storage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 05:52 AM
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.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 06:20 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 07:06 AM
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.