Get-AzHDInsightHost
Lists the hosts of the HDInsight cluster.
Syntax
Get-AzHDInsightHost
[[-ResourceGroupName] <String>]
[-ClusterName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzHDInsightHost
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzHDInsightHost
[-InputObject] <AzureHDInsightCluster>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzHDInsightHost cmdlet lists the hosts of the HDInsight cluster.
Examples
Example 1
# Cluster info
$clusterName = "your-hadoop-001"
Get-AzHDInsightHost -ClusterName $clusterName
This command lists of cluster' hosts with cluster name.
Example 2
# Cluster info
$clusterName = "your-hadoop-001"
$cluster=Get-AzHDInsightCluster -ClusterName $clusterName
$cluster | Get-AzHDInsightHost
This command lists of cluster' hosts with pipeline.
Parameters
-ClusterName
Gets or sets the name of the cluster.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Gets or sets the input object.
Type: | AzureHDInsightCluster |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Gets or sets the name of the resource group.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
Gets or sets the resource id.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.