Libraries Not Working on Shared Cluster 13.3 LTS

ywaihong6123
New Contributor

I am facing this error while installing the spark-excel library into the cluster. Does anyone know how to add library into artifact allowlist?

Jars and Maven Libraries on Shared Clusters must be on the allowlist. Failed Libraries: com.crealytics:spark-excel_2.12:3.4.1_0.19.0: PERMISSION_DENIED: 'com.crealytics:spark-excel_2.12:3.4.1_0.19.0' is not in the artifact allowlist

User16752239289
Databricks Employee
Databricks Employee

You can add the jar followed below steps:

How to add items to the allowlist

You can add items to the allowlist with Data Explorer or the REST API.

To open the dialog for adding items to the allowlist in Data Explorer, do the following:

  1. In your Databricks workspace click the Data button 

  2. Click gear button to open the metastore details and permissions UI. 

  3. Select Allowed JARs/Init Scripts.

  4. Click Add.

Add a JAR to the allowlist

Complete the following steps to add a JAR to the allowlist:

  1. For Type, select JAR.

  2. For Source Type, select Volume or the object storage protocol.

  3. Specify the source path to add to the allowlist. See How are permissions on paths enforced in the allowlist?.

Please note you must be the metastore admin to add the jar.