Not able to create mount point in Databricks

vishalyennam
New Contributor II

Hi Everyone,

I am trying to create mount point in Azure Databricks, but mount point creation is failing with below error message.

java.lang.UnsupportedOperationException: Managing DBFS mounts is not supported on this type of compute resource. Use Unity Catalog Volumes or External Locations instead.

val containerName = "input"
val storageAccountName = "sttestblobdata001"
val sas = "..."
val url = "wasbs://" + containerName + "@" + storageAccountName + ".blob.core.windows.net/"
val config = "fs.azure.sas." + containerName + "." + storageAccountName + ".blob.core.windows.net"

dbutils.fs.mount(
source = url,
mountPoint = "/mnt/input",
extraConfigs = Map(config -> sas))

To troubleshoot, I downgraded the cluster to Databricks Runtime 15.4 LTS and also tried 16.4, but I still get the same error.

Any guidance would be highly appreciated. Thanks in advance!

Cluster

Screenshot (142).png

Code Error:-

Screenshot (141).png

#AzureDatabricks #DBFS #UnityCatalog #MountPoint #AzureStorage #DataEngineering #DatabricksHelp #BlobStorage