แชร์ผ่าน


az hdinsight host

Manage HDInsight cluster's virtual hosts.

Commands

Name Description Type Status
az hdinsight host list

List the hosts of the specified HDInsight cluster.

Core GA
az hdinsight host restart

Restart the specific hosts of the specified HDInsight cluster.

Core GA

az hdinsight host list

List the hosts of the specified HDInsight cluster.

az hdinsight host list --cluster-name
                       --resource-group

Examples

List the hosts of the specified HDInsight cluster.

az hdinsight host list --resource-group MyResourceGroup --cluster-name MyCluster

Required Parameters

--cluster-name

The name of the cluster.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az hdinsight host restart

Restart the specific hosts of the specified HDInsight cluster.

az hdinsight host restart --cluster-name
                          --host-names
                          --resource-group
                          [--yes]

Examples

Restart the specific hosts of the specified HDInsight cluster.

az hdinsight host restart --resource-group MyResourceGroup --cluster-name MyCluster --host-names hostname1 hostname2

Required Parameters

--cluster-name

The name of the cluster.

--host-names

A space-delimited list of host names that need to be restarted.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.