无法从 UI 卸载库Cannot uninstall library from UI

问题Problem

通常,可以在群集UI 中卸载库。Usually, libraries can be uninstalled in the Clusters UI. 如果选中该复选框的复选框处于禁用状态,则无法从 UI 中卸载库。If the checkbox to select the library is disabled, then it’s not possible to uninstall the library from the UI.

原因Cause

如果使用 REST API 版本1.2 创建库,并且启用了自动附加功能,则会在所有群集上安装库。If you create a library using REST API version 1.2 and if auto-attach is enabled, the library is installed on all clusters. 在这种情况下,将禁用 "群集UI" 复选框以选择要卸载的库。In this scenario, the Clusters UI checkbox to select the library to uninstall is disabled.

解决方案Solution

创建一个工作区库,指向无法卸载的库的 DBFS 位置。Create a workspace library pointing to the DBFS location of the library that you are unable to uninstall.

示例:无法卸载此 DBFS 位置上提供的 JAR 库:Example: You can’t uninstall a JAR library that is available at this DBFS location:

dbfs:/Filestore/jars/custom_elastic_spark.jar
  1. 创建一个指向同一 DBFS 位置的新工作区库。Create a new workspace library pointing to the same DBFS location.
  2. 在 "库" UI 中,选中相应的复选框以从各个群集中卸载库。In the library UI, select the checkbox to uninstall the library from individual clusters.