Databricks fail to install libraries from Maven.

Artem Anikieiev 20 Reputation points
2023-06-13T18:32:59.8366667+00:00

During cluster start libraries from maven fail to install.

Error code: DRIVER_LIBRARY_INSTALLATION_FAILURE. Error Message: Library resolution failed because com.sun.mail:javax.mail download failed.

It goes for all libraries in cluster. This issue persists between multiple clusters and even workspaces. What can I do to resolve this issue? I've tried to add javax.mail jar to cluster it didn't help.

User's image

User's image

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
0 comments No comments
{count} votes

Answer accepted by question author
  1. PRADEEPCHEEKATLA 91,656 Reputation points Moderator
    2023-06-14T08:55:58.7266667+00:00

    @Artem Anikieiev - Thanks for the question and using MS Q&A platform.

    The error message you are seeing indicates that Databricks is unable to download the javax.mail library from Maven. This could be due to a network issue or a problem with the Maven repository.

    Here are some steps you can take to resolve this issue:

    1. Check your network connectivity: Ensure that your network connection is stable and that you are able to access the internet. You can try pinging the Maven repository to see if you are able to connect to it.
    2. Check the Maven repository: Verify that the Maven repository is up and running and that the javax.mail library is available. You can try downloading the library manually from the repository to see if it is accessible.
    3. Check the Databricks cluster configuration: Ensure that the cluster is configured to use the correct Maven repository and that the repository is accessible from the cluster. You can check the cluster configuration by going to the cluster settings in the Databricks workspace.
    4. Try using a different Maven repository: If the issue persists, you can try using a different Maven repository to see if that resolves the issue. You can configure the cluster to use a different repository by updating the Maven settings in the cluster configuration.

    As per the repro, I had tried to install the maven library (com.microsoft.azure.kusto:kusto-spark_3.0_2.12:4.0.0) on Cluster Details - Databricks Runtime Version: 12.2 LTS (includes Apache Spark 3.3.2, Scala 2.12) and able to successfully able to install wihtout any issue.

    ADB-MavenKusto

    In case, if you are still experiencing the same issue. I would suggest you to share the databricks runtime version which you are using to install the maven library.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.