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:ย 

Wheel permissions issue

adrianhernandez
New Contributor III

I get a : org.apache.spark.SparkSecurityException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission MODIFY,SELECT on any file. SQLSTATE: 42501 at com.databricks.sql.acl.Unauthorized.throwInsufficientPermissionsError(PermissionChecker.scala:360) error when trying to run my wheel. Funny thing is that the folder selected is my default folder as seen in workspace where I do have read/write/execute permissions by default. Not sure what's going on. This is my code :

!python /Workspace/my_folder/ABC/setup.py bdist_wheel

 

1 REPLY 1

NandiniN
Databricks Employee
Databricks Employee

Hi @adrianhernandez , 

The permissions error indicates you need to have the privileges for "any file".

To resolve this, Can you try by adding the corresponding permissions and see if it works:

%sql GRANT SELECT ON ANY FILE TO `username`
%sql GRANT MODIFY ON ANY FILE TO `username` 
 
Thanks!

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