Share via

Call file system utlity mount to mount the Azure storage in Databricks

riya nai 0 Reputation points
2026-02-24T13:15:41.43+00:00

Hi Team,

I am trying to mount the Azure storage to DBFS using mount utility and getting below error. Do you have any idea to solve this issue?

Py4JError: ('Method public com.databricks.backend.daemon.dbutils.DBUtilsCore$Result com.databricks.backend.daemon.dbutils.DBUtilsCore.mounts() is not whitelisted on class class com.databricks.backend.daemon.dbutils.DBUtilsCore',)

Regards,

RN

Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Manoj Kumar Boyini 9,410 Reputation points Microsoft External Staff Moderator
    2026-02-25T21:46:37.3166667+00:00

    Hi riya nai

    It looks like you're running into a Py4JError when trying to mount Azure storage to DBFS in Databricks. This error happens because the mount method isn't whitelisted for the cluster access mode you're using.

    Here are a few things you can check to solve the issue:

    Cluster Access Mode: Ensure that your Databricks cluster is set to either "Single User" or "No Isolation Shared" access mode. The mount functionality won’t work if the cluster is set to "Shared" mode. You can check and modify this setting in the cluster configuration.

    Using Secrets: If you're using a service principal and credentials stored as secrets, make sure these secrets are set up correctly and accessible. Using secrets properly can help ensure secure and authorized access to your Azure storage.

    Refreshing Mounts: After creating the mount, you might need to run dbutils.fs.refreshMounts() to ensure that other jobs and clusters recognize the new mount.

    Service Principal Permissions: If you're using a service principal, verify that it has the necessary permissions set at the Azure Storage account level, including reading and writing to the storage you are trying to mount.

    If you've checked everything above and are still facing issues, here are some follow-up questions:

    • What access mode is your cluster currently configured to?
    • Are you using a service principal to authenticate, and if so, have you confirmed that it has the appropriate permissions?
    • Can you provide the code snippet you are using to attempt to mount the Azure storage?

    Hope this helps get you on track!

    References:


  2. Q&A Assist
    2026-02-24T13:15:51.83+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error you're encountering, Py4JError: ('Method public com.databricks.backend.daemon.dbutils.DBUtilsCore$Result com.databricks.backend.daemon.dbutils.DBUtilsCore.mounts() is not whitelisted on class class com.databricks.backend.daemon.dbutils.DBUtilsCore',) suggests that the method you're trying to use is not available or not permitted in your current Databricks environment. This can occur if the method is restricted in your workspace or if you're using a version of Databricks that does not support this method.

    To resolve this issue, you can try the following steps:

    1. Check Permissions: Ensure that your user account has the necessary permissions to use the mount utility. You may need to contact your Databricks administrator.
    2. Update Databricks Runtime: Make sure you are using a version of Databricks Runtime that supports the dbutils.fs.mount command. If you are on an older version, consider upgrading.
    3. Use Alternative Methods: If the mount method is not available, you might want to explore using the updateMount command instead, which updates an existing mount point if it is already created.
    4. Consult Documentation: Refer to the official Databricks documentation for any updates or changes regarding the usage of the dbutils methods.

    If the problem persists, you may want to reach out to Databricks support for further assistance.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.