@Generated public interface GlobalInitScriptsService
**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.
Modifier and Type | Method and 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.
|
CreateResponse create(GlobalInitScriptCreateRequest globalInitScriptCreateRequest)
Creates a new global init script in this workspace.
void delete(DeleteGlobalInitScriptRequest deleteGlobalInitScriptRequest)
Deletes a global init script.
GlobalInitScriptDetailsWithContent get(GetGlobalInitScriptRequest getGlobalInitScriptRequest)
Gets all the details of a script, including its Base64-encoded contents.
ListGlobalInitScriptsResponse list()
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](:method:globalinitscripts/get) operation.
void update(GlobalInitScriptUpdateRequest globalInitScriptUpdateRequest)
Updates a global init script, specifying only the fields to change. All fields are optional. Unspecified fields retain their current value.
Copyright © 2024. All rights reserved.