How to list all the mount points in Azure Databricks?

Viewed 29047

I tried with this %fs ls dbfs:/mnt, but i want to know do this give me all the mount point?

3 Answers

I like to do the following :

display(dbutils.fs.mounts())

as it displays the databricks path and external endpoint.

enter image description here

I find it safer than %sh ls /mnt/ as you can have a folder in /mnt/ that is not pointing to an external storage.

You can simply use the Databricks filesystem commands to navigate through the mount points available in your cluster.

%fs
mounts

This will give you all the mount points and also display the corresponding ADLS source file path.

Before running this command, make sure you have created mount points earlier.

enter image description here

How to list all the mount points in Azure Databricks?

Here is the list of commands to list all the mount points in Azure Databricks.

enter image description here

Related