cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Spark Excel Library Insufficient Privileges

jamesdavids
New Contributor

Hi

We have a shared access mode cluster in which we have installed a maven library for reading excel files into a Spark DataFrame. When using an account with admin rights everything works fine, however when we run it as a standar user we always get `

org.apache.spark.SparkSecurityException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges:`
 
jamesdavids_0-1717747232287.png

We have managed to fix this by granting standard users the ANY FILE securable. However we would like to use a different approach since some installed libraries store data of all users in one common temp directory. These libraries might compromise user isolation. Do you know how can we make this work without granting ANY FILE to standard users? Thanks in advance.

1 REPLY 1

Walter_C
Databricks Employee
Databricks Employee

Hello James, this issue seems to be related to shared cluster limitations, as per docs: Libraries used as JDBC drivers or custom Spark data sources on Unity Catalog-enabled shared compute require ANY FILE permissions.

Moving to a single user cluster must resolve the requirement of ANY FILE permission

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group