Udostępnij za pośrednictwem


Get-AzHDInsightHost

Wyświetla listę hostów klastra usługi HDInsight.

Składnia

Get-AzHDInsightHost
   [[-ResourceGroupName] <String>]
   [-ClusterName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzHDInsightHost
   [-ResourceId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzHDInsightHost
   [-InputObject] <AzureHDInsightCluster>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Opis

Polecenie cmdlet Get-AzHDInsightHost zawiera listę hostów klastra usługi HDInsight.

Przykłady

Przykład 1

# Cluster info
$clusterName = "your-hadoop-001"
Get-AzHDInsightHost -ClusterName $clusterName

To polecenie wyświetla listę hostów klastra o nazwie klastra.

Przykład 2

# Cluster info
$clusterName = "your-hadoop-001"
$cluster=Get-AzHDInsightCluster -ClusterName $clusterName
$cluster | Get-AzHDInsightHost

To polecenie wyświetla listę hostów klastra z potokiem.

Parametry

-ClusterName

Pobiera lub ustawia nazwę klastra.

Typ:String
Position:1
wartość domyślna:None
Wymagane:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Poświadczenia, konto, dzierżawa i subskrypcja używane do komunikacji z platformą Azure.

Typ:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
wartość domyślna:None
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Pobiera lub ustawia obiekt wejściowy.

Typ:AzureHDInsightCluster
Position:0
wartość domyślna:None
Wymagane:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Pobiera lub ustawia nazwę grupy zasobów.

Typ:String
Position:0
wartość domyślna:None
Wymagane:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Pobiera lub ustawia identyfikator zasobu.

Typ:String
Position:0
wartość domyślna:None
Wymagane:True
Accept pipeline input:True
Accept wildcard characters:False

Dane wejściowe

AzureHDInsightCluster

Dane wyjściowe

AzureHDInsightHostInfo