简体   繁体   English

从私有 Maven 存储库在数据块中安装库

[英]Install library in databricks from private maven repository

I'm trying to install a library from Maven in Databricks.我正在尝试在 Databricks 中从 Maven 安装一个库。 The repository is private.存储库是私有的。 I'm trying to install it using a repository like https://user:pass@host/, but it gives me 'unresolved dependency'.我正在尝试使用 https://user:pass@host/ 之类的存储库安装它,但它给了我“未解决的依赖项”。 When I try to download it from mvn cli, then it works.当我尝试从 mvn cli 下载它时,它可以工作。

Any ideas?有任何想法吗?

Unfortunately, installing libraries from Maven private repositories is not support in Azure Databricks.遗憾的是,Azure Databricks 不支持从 Maven 私有存储库安装库。

As per the documentation , Azure Databricks has the ability to install third-party or custom libraries from the Maven public repository and not from private maven repository.根据文档,Azure Databricks 能够从 Maven 公共存储库而不是从私有 Maven 存储库安装第三方或自定义库。

As an alternate solution, you can upload library file in dbfs and install from there.作为替代解决方案,您可以在 dbfs 中上传库文件并从那里安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM