庫CLI(遺留)

重要的

這個文檔已經退休了,可能不會被更新。

這個信息適用於遺留數據磚CLI版本0.17及以下。磚建議你使用新磚CLI的版本0.200及以上。看到磚CLI。找到你的版本的磚CLI,運行- v

你跑磚庫CLI子命令通過添加。這些子命令調用庫API

磚庫- h
用法:磚庫[選項]命令(ARGS)……實用程序與庫進行交互。選項:- v、——版本(版本)- h,幫助顯示此消息並退出。命令:all-cluster-statuses得到所有圖書館的地位。集群狀態得到所有圖書館集群的狀態。選項:——cluster-id CLUSTER_ID可以在URL https:// < databricks-instance > / ? o = < 16-digit-number > # /設置/集群/ CLUSTER_ID美元/配置。安裝在一個集群上安裝一個圖書館。選項:——cluster-id CLUSTER_ID可以在URL https:// < databricks-instance > / ? o = < 16-digit-number > # /設置/集群/ CLUSTER_ID美元/配置。——jar文本DBFS或者S3 WASB jar。——蛋文本蛋DBFS S3或者WASB。 --whl TEXT Wheel or zipped wheelhouse on DBFS or S3 or WASB. Supported in CLI 0.8.2 and above. --maven-coordinates TEXT Maven coordinates in the form of GroupId:ArtifactId:Version (i.e.org.jsoup:jsoup:1.7.2). --maven-repo TEXT Maven repository to install the Maven package from. If omitted, both Maven Repository and Spark Packages are searched. --maven-exclusion TEXT List of dependences to exclude. For example: --maven-exclusion "slf4j:slf4j" --maven-exclusion "*:hadoop-client". --pypi-package TEXT The name of the PyPI package to install. An optional exact version specification is also supported. Examples "simplejson" and "simplejson==3.8.0". --pypi-repo TEXT The repository where the package can be found. If not specified, the default pip index is used. --cran-package TEXT The name of the CRAN package to install. --cran-repo TEXT The repository where the package can be found. If not specified, the default CRAN repo is used. list Shortcut to `all-cluster-statuses` or `cluster-status`. Options: --cluster-id CLUSTER_ID Can be found in the URL at https:///?o=<16-digit-number>#/setting/clusters/$CLUSTER_ID/configuration. uninstall Uninstall a library on a cluster. Options: --cluster-id CLUSTER_ID Can be found in the URL at https:///?o=<16-digit-number>#/setting/clusters/$CLUSTER_ID/configuration. [required] --all Uninstall all libraries. --jar TEXT JAR on DBFS or S3 or WASB. --egg TEXT Egg on DBFS or S3 or WASB. --whl TEXT Wheel or zipped wheelhouse on DBFS or S3 or WASB. Supported in CLI 0.8.2 and above. --maven-coordinates TEXT Maven coordinates in the form of GroupId:ArtifactId:Version (i.e.org.jsoup:jsoup:1.7.2). --maven-repo TEXT Maven repository to install the Maven package from. If omitted, both Maven Repository and Spark Packages are searched. --maven-exclusion TEXT List of dependences to exclude. For example: --maven-exclusion "slf4j:slf4j" --maven-exclusion "*:hadoop-client". --pypi-package TEXT The name of the PyPI package to install. An optional exact version specification is also supported. Examples "simplejson" and "simplejson==3.8.0". --pypi-repo TEXT The repository where the package can be found. If not specified, the default pip index is used. --cran-package TEXT The name of the CRAN package to install. --cran-repo TEXT The repository where the package can be found. If not specified, the default CRAN repo is used.

列出所有圖書館的地位在所有集群

顯示使用文檔,運行all-cluster-statuses——幫助

磚庫all-cluster-statuses
{“狀態”:[{“cluster_id”:“1234 - 567890 lest123”,“library_statuses”:({"圖書館":{“罐子”:“dbfs: / FileStore /罐/ bbf81650_a62b_4b7a_b47e_7bdd9505792a-SparkJDBC42.jar”},“狀態”:“安裝”,“is_library_for_all_clusters”:真的},]},]}

列出所有圖書館集群上的狀態

顯示使用文檔,運行集群狀態——幫助列表——幫助

集群狀態——cluster-id磚庫1234年567890 - lest123

或者:

磚——cluster-id庫列表1234年567890 - lest123
{“cluster_id”:“1234 - 567890 lest123”,“library_statuses”:({"圖書館":{“罐子”:“dbfs: / FileStore /罐/ bbf81650_a62b_4b7a_b47e_7bdd9505792a-SparkJDBC42.jar”},“狀態”:“安裝”,“is_library_for_all_clusters”:假的},]}

安裝一個圖書館集群上

顯示使用文檔,運行安裝——幫助

安裝——cluster-id磚庫1234年567890 - lest123——jar dbfs: / test-dir / test.jar

如果成功,沒有顯示輸出。

卸載一個圖書館集群

顯示使用文檔,運行卸載——幫助

卸載——cluster-id磚庫1234年567890 - lest123——jar dbfs: / test-dir / test.jar
警告:卸載圖書館集群需要重啟。磚集群——cluster-id 1234 - 567890 lest123重啟