Hi Dathathraiah,
Thanks for reaching out to Microsoft Q&A.
The error you’re encountering indicates that the com.databricks:spark-xml_2.12:0.14.0
library couldn’t be found or resolved in the Maven repository Databricks is accessing.
Here are steps to troubleshoot and potentially resolve this:
Verify the Maven Repository Availability:
- Databricks may not have access to the repository hosting
spark-xml_2.12:0.14.0
. Check if the library is hosted on Maven Central or another repository. You can manually download the library.jar
file from Maven Central or other repository sources if it’s available.
Specify Repository Configuration:
- Sometimes, Databricks clusters may need additional configuration to access non-default Maven repositories. If the library isn’t on Maven Central, specify the repository in the cluster's
Advanced Options
:- Go to Cluster configuration in Databricks.
- Under Libraries > Advanced Options, you can add additional Maven repositories.
Try an Alternative Version:
- If the library isn’t available in version
0.14.0
, you could try another version such as0.13.0
or the latest available version for Spark XML.
Install the Jar File Directly:
- If you can download the
.jar
file manually, you can upload it to your Databricks workspace or DBFS and then attach it as a library to your cluster in ADF: - Use
dbfs cp
to move the.jar
to the Databricks File System.- Attach the
.jar
file as a library in your Databricks notebook activity.
- Attach the
Check for Dependency Conflicts:
- Conflicts between Spark and Scala versions might cause issues. Ensure compatibility by confirming that your Spark version in Databricks matches the expected version for
spark-xml
(ex: Spark 2.x or 3.x series).
If none of these resolve the issue, another option is to file a support ticket with Databricks, as they may provide more specific guidance on the DRIVER_LIBRARY_INSTALLATION_FAILURE
error.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.