在Databricks中添加'com.crealytics.spark.excel'的另一种方法

问题描述

我正在尝试在数据砖中安装com.crealytics.spark.excel软件包。有没有命令行方法可以在不从群集,库和新安装的情况下进行安装?

解决方法

您可以使用Databricks CLI在Databricks中安装“ com.crealytics.spark.excel”。

语法: databricks libraries install --cluster-id "Cluster ID" --maven-coordinates "GroupId:ArtifactId:Version" (i.e.org.jsoup:jsoup:1.7.2)

第1步::您可以从Maven坐标中转到Maven存储库,然后选择要查找的版本。

enter image description here

第二步::使用以下Databricks CLI命令在Databricks中安装“ com.crealytics.spark.excel”。

databricks libraries install --cluster-id "0925-XXXXXX-bite618" --maven-coordinates "com.crealytics:spark-excel_2.12:0.13.5"

enter image description here

有关在Azure Databricks中安装软件包的其他方法,请参考:How to install a library on a databricks cluster using some command in the notebook?