全局初始化脚本 APIGlobal Init Scripts API

全局初始化脚本是工作区中每个群集的每个群集节点上在启动期间(在启动 Apache Spark 驱动程序或辅助 JVM 之前)运行的 shell 脚本。Global init scripts are shell scripts that run during startup on each cluster node of every cluster in the workspace, before the Apache Spark driver or worker JVM starts. 这些脚本有助于在工作区中强制实施一致的群集配置。They can help you to enforce consistent cluster configurations across your workspace. 请谨慎使用,因为它们可能会造成非预期影响,例如库冲突。Use them carefully because they can cause unanticipated impacts, like library conflicts.

使用全局初始化脚本 API,Azure Databricks 管理员能够以安全且受控的方式添加全局群集初始化脚本。The Global Init Scripts API lets Azure Databricks administrators add global cluster initialization scripts in a secure and controlled manner. 若要了解如何使用 UI 添加这些脚本,请参阅全局初始化脚本To learn how to add them using the UI, see Global init scripts.

全局初始化脚本 API 作为 OpenAPI 3.0 规范提供,你可以下载它并在喜欢的 OpenAPI 编辑器中将它作为结构化 API 参考进行查看。The Global Init Scripts API is provided as an OpenAPI 3.0 specification that you can download and view as a structured API reference in your favorite OpenAPI editor.

重要

要访问 Databricks REST API,必须进行身份验证To access Databricks REST APIs, you must authenticate.