@Generated public interface LibrariesService
To make third-party or custom 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 Python, Java, Scala and R libraries and point to external packages in PyPI, Maven, and CRAN repositories.
Cluster libraries can be used by all notebooks running on a cluster. You can install a cluster library directly from a public repository such as PyPI or Maven, using a previously installed workspace library, or using an init script.
When you uninstall a library from a cluster, the library is removed only when you restart the cluster. Until you restart the cluster, the status of the uninstalled library appears as Uninstall pending restart.
This is the high-level interface, that contains generated methods.
Evolving: this interface is under development. Method signatures may change.
Modifier and Type | Method and Description |
---|---|
ListAllClusterLibraryStatusesResponse |
allClusterStatuses()
Get all statuses.
|
ClusterStatusResponse |
clusterStatus(ClusterStatus clusterStatus)
Get status.
|
void |
install(InstallLibraries installLibraries)
Add a library.
|
void |
uninstall(UninstallLibraries uninstallLibraries)
Uninstall libraries.
|
ListAllClusterLibraryStatusesResponse allClusterStatuses()
Get the status of all libraries on all clusters. A status is returned for all libraries installed on this cluster via the API or the libraries UI.
ClusterStatusResponse clusterStatus(ClusterStatus clusterStatus)
Get the status of libraries on a cluster. A status is returned for all libraries installed on this cluster via the API or the libraries UI. The order of returned libraries is as follows: 1. Libraries set to be installed on this cluster, in the order that the libraries were added to the cluster, are returned first. 2. Libraries that were previously requested to be installed on this cluster or, but are now marked for removal, in no particular order, are returned last.
void install(InstallLibraries installLibraries)
Add libraries to install on a cluster. The installation is asynchronous; it happens in the background after the completion of this request.
void uninstall(UninstallLibraries uninstallLibraries)
Set libraries to uninstall from a cluster. The libraries won't be uninstalled until the cluster is restarted. A request to uninstall a library that is not currently installed is ignored.
Copyright © 2024. All rights reserved.