can not list mount points

arkiboys 9,706 Reputation points
2024-03-13T17:58:40.1466667+00:00

I used to be able to list the mount points but I get this error now.

%python
display(dbutils.fs.mounts())

py4j.security.Py4JSecurityException: 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
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2024-03-18T05:23:18.6266667+00:00

    @arkiboys - Thanks for the question and using MS Q&A platform.

    Have you tried suggested on my previous MS Q&A thread: https://learn.microsoft.com/en-us/answers/questions/827502/not-able-to-mount-on-adls-gen2-when-using-a-high-c

    You may checkout the SO thread addressing similar issue: https://stackoverflow.com/questions/76289930/databricks-error-constructor-public-com-databricks-backend-daemon-dbutils-fsuti

    I tried to display the execpted outpout with Azure Databricks runtime version: 13.3 LTS. User's image

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


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2024-03-14T01:07:05.48+00:00

    Hello,

    As suggested on this thread:

    Below are the three workarounds to resolve this issue:

    • Update spark.databricks.pyspark.enableProcessIsolation to false
    • Update spark.databricks.pyspark.enablePy4JSecurity to false
    • Use standard clusters.

    I would recommend using a standard cluster, but those are the current workarounds that should allow you to move forward.

    If this is helpful please accept answer.


Your answer

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