az hdinsight script-action
Manage HDInsight script actions.
Commands
Name | Description | Type | Status |
---|---|---|---|
az hdinsight script-action delete |
Deletes a specified persisted script action of the cluster. |
Core | GA |
az hdinsight script-action execute |
Execute script actions on the specified HDInsight cluster. |
Core | GA |
az hdinsight script-action list |
Lists all the persisted script actions for the specified cluster. |
Core | GA |
az hdinsight script-action list-execution-history |
Lists all scripts' execution history for the specified cluster. |
Core | GA |
az hdinsight script-action promote |
Promotes the specified ad-hoc script execution to a persisted script. |
Core | GA |
az hdinsight script-action show-execution-details |
Gets the script execution detail for the given script execution ID. |
Core | GA |
az hdinsight script-action delete
Deletes a specified persisted script action of the cluster.
az hdinsight script-action delete --cluster-name
--name
--resource-group
Required Parameters
The name of the cluster.
The name of the script.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az hdinsight script-action execute
Execute script actions on the specified HDInsight cluster.
az hdinsight script-action execute --cluster-name
--name
--resource-group
--roles
--script-uri
[--persist-on-success]
[--script-parameters]
Examples
Execute a script action and persist on success.
az hdinsight script-action execute -g MyResourceGroup -n MyScriptActionName \
--cluster-name MyCluster \
--script-uri https://hdiconfigactions.blob.core.windows.net/linuxgiraphconfigactionv01/giraph-installer-v01.sh \
--roles headnode workernode \
--persist-on-success
Required Parameters
The name of the cluster.
The name of the script action.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
A space-delimited list of roles (nodes) where the script will be executed. Valid roles are headnode, workernode, zookeepernode, edgenode.
The URI to the script.
Optional Parameters
If the scripts needs to be persisted.
The parameters for the script.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az hdinsight script-action list
Lists all the persisted script actions for the specified cluster.
az hdinsight script-action list --cluster-name
--resource-group
Required Parameters
The name of the cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az hdinsight script-action list-execution-history
Lists all scripts' execution history for the specified cluster.
az hdinsight script-action list-execution-history --cluster-name
--resource-group
Required Parameters
The name of the cluster.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az hdinsight script-action promote
Promotes the specified ad-hoc script execution to a persisted script.
az hdinsight script-action promote --cluster-name
--execution-id
--resource-group
Required Parameters
The name of the cluster.
The script execution id.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az hdinsight script-action show-execution-details
Gets the script execution detail for the given script execution ID.
az hdinsight script-action show-execution-details --cluster-name
--execution-id
--resource-group
Required Parameters
The name of the cluster.
The script execution id.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.