Search code examples
amazon-s3pysparkdatabricksazure-databricks

Mounting S3 to DBFS(azure databricks), integer is adding with mount path


I have been mounted s3 bucket to DBFS.After unmounting i tried to list the files in the directory

eg : %fs ls /mnt/TmpS3SampleDB/

Output : java.io.FileNotFoundException: File/743456612344/mnt/TmpS3SampleDB/ does not exist.

In the above output , i don't understand where the interger-743456612344 is coming from.

Can anyone please explain . I am using azure databricks.


Solution

  • Note: Azure Databricks interact with object storage using directory and file semantics instead of storage URLs.

    "743456612344" this is directory id associated with the Databricks.

    When you try listing files in WASB using dbutils.fs.ls or the Hadoop API, you get the following exception:

    java.io.FileNotFoundException: File/ does not exist.

    enter image description here

    For more details, refer "Databricks File System".

    Hope this helps. Do let us know if you any further queries.