简体   繁体   English

无法在 Databricks 中安装 net.liftweb:lift-json_2.13

[英]Can't install net.liftweb:lift-json_2.13 in Databricks

I am trying to install net.liftweb:lift-json_2.13:3.4.1 into a Databricks cluster (Apache Spark 2.4.4, Scala 2.11)我正在尝试将 net.liftweb:lift-json_2.13:3.4.1 安装到 Databricks 集群中(Apache Spark 2.4.4、Scala 2.11)

However I am getting the following error:但是我收到以下错误:

java.lang.RuntimeException: unresolved dependency: net.liftweb:lift:1.2.1: not found

When I try to install the net.liftweb:lift:1.2.1 I am getting the following error:当我尝试安装 net.liftweb:lift:1.2.1 时,出现以下错误:

Maven Dependencies not found: unresolved dependency: net.liftweb:lift:1.2.1: not found Please try again by excluding these dependencies.

I also had no success with other versions.我在其他版本上也没有成功。

To make third-party or locally-built code available to notebooks and jobs running on your clusters, you can install a library.要将第三方或本地构建的代码提供给在集群上运行的笔记本和作业,您可以安装一个库。 Libraries can be written in Python, Java, Scala, and R. You can upload Java, Scala, and Python libraries and point to external packages in PyPI, Maven, and CRAN repositories.库可以用 Python、Java、Scala 和 R 编写。您可以上传 Java、Scala 和 Python 库并指向 PyPI、Maven 和 CRAN 存储库中的外部包。

Steps to install third party libraries:安装第三方库的步骤:

Step1: Create Databricks Cluster.步骤 1:创建 Databricks 集群。

Step2: Select the cluster created. Step2:选择创建的集群。

Step3: Select Libraries => Install New => Select Library Source = "Maven" => Coordinates => Search Packages => Select Maven Central => Search for the package required.步骤3:选择Libraries => Install New => Select Library Source = "Maven" => Coordinates => Search Packages => 选择Maven Central => 搜索所需的包。 Example: (lift json) => Select the version ( net.liftweb » lift-json_2.13 » 3.4.1) required => Install示例:(lift json) => 选择所需的版本 (net.liftweb »lift-json_2.13 » 3.4.1) => 安装

在此处输入图片说明

Successfully installed ( net.liftweb » lift-json_2.13 » 3.4.1) library.成功安装 (net.liftweb » lift-json_2.13 » 3.4.1) 库。

在此处输入图片说明

For more details, refer " Azure Databricks - libraries ".有关更多详细信息,请参阅“ Azure Databricks - 库”。

Hope this helps.希望这可以帮助。 Do let us know if you any further queries.如果您有任何进一步的疑问,请告诉我们。

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

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