cancel
Showing results for 
Search instead for 
Did you mean: 
Community 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
Honored Contributor
Honored Contributor

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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!