Interface GlobalInitScriptsService


  • @Generated
    public interface GlobalInitScriptsService
    The Global Init Scripts API enables Workspace administrators to configure global initialization scripts for their workspace. These scripts run on every node in every cluster in the workspace.

    **Important:** Existing clusters must be restarted to pick up any changes made to global init scripts. Global init scripts are run in order. If the init script returns with a bad exit code, the Apache Spark container fails to launch and init scripts with later position are skipped. If enough containers fail, the entire cluster fails with a `GLOBAL_INIT_SCRIPT_FAILURE` error code.

    This is the high-level interface, that contains generated methods.

    Evolving: this interface is under development. Method signatures may change.

    • Method Detail

      • list

        ListGlobalInitScriptsResponse list()
        Get init scripts.

        Get a list of all global init scripts for this workspace. This returns all properties for each script but **not** the script contents. To retrieve the contents of a script, use the [get a global init script](#operation/get-script) operation.

      • update

        void update​(GlobalInitScriptUpdateRequest globalInitScriptUpdateRequest)
        Update init script.

        Updates a global init script, specifying only the fields to change. All fields are optional. Unspecified fields retain their current value.