cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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

liu
New Contributor III

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 

1 ACCEPTED SOLUTION

Accepted Solutions

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

2 REPLIES 2

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

 

liu
New Contributor III

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?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now