I encountered an error when trying to use dbutils to operate on files with a file: prefix.

liu
Databricks Partner

When I execute the statement:

dbutils.fs.ls("file:/tmp/")

I receive the following error:

ExecutionError: (java.lang.SecurityException) Cannot use com.databricks.backend.daemon.driver.WorkspaceLocalFileSystem - local filesystem access is forbidden

Does anyone know the cause of this?  help  help 

szymon_dybczak
Esteemed Contributor III

Hi @liu ,

Which type of cluster are you using? Which access mode? Your compute must have Dedicated (formerly single user) access mode

 

View solution in original post

liu
Databricks Partner

thank you very much

I created a dedicated compute instance, and I’m now able to access local files.

Can I ask one more question? When creating a compute instance, what options should I pay attention to?