庫CLI(遺留)
你跑磚庫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”:假的},…]}