az hdinsight host

Manage HDInsight cluster's virtual hosts.

Commands

az hdinsight host list

List the hosts of the specified HDInsight cluster.

az hdinsight host restart

Restart the specific hosts of the specified HDInsight cluster.

az hdinsight host list

List the hosts of the specified HDInsight cluster.

az hdinsight host list --cluster-name
                       --resource-group
                       [--query-examples]
                       [--subscription]

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>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

az hdinsight host restart

Restart the specific hosts of the specified HDInsight cluster.

az hdinsight host restart --cluster-name
                          --host-names
                          --resource-group
                          [--subscription]
                          [--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

--subscription

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

--yes -y

Do not prompt for confirmation.