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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateResponse
create(GlobalInitScriptCreateRequest globalInitScriptCreateRequest)
Create init script.void
delete(DeleteGlobalInitScriptRequest deleteGlobalInitScriptRequest)
Delete init script.GlobalInitScriptDetailsWithContent
get(GetGlobalInitScriptRequest getGlobalInitScriptRequest)
Get an init script.ListGlobalInitScriptsResponse
list()
Get init scripts.void
update(GlobalInitScriptUpdateRequest globalInitScriptUpdateRequest)
Update init script.
-
-
-
Method Detail
-
create
CreateResponse create(GlobalInitScriptCreateRequest globalInitScriptCreateRequest)
Create init script.Creates a new global init script in this workspace.
-
delete
void delete(DeleteGlobalInitScriptRequest deleteGlobalInitScriptRequest)
Delete init script.Deletes a global init script.
-
get
GlobalInitScriptDetailsWithContent get(GetGlobalInitScriptRequest getGlobalInitScriptRequest)
Get an init script.Gets all the details of a script, including its Base64-encoded contents.
-
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.
-
-