< Back

Use-AzureRmHDInsightCluster

Tue Jan 29, 2019 9:48 pm

NAME Use-AzureRmHDInsightCluster



SYNOPSIS

Selects a cluster to be used with the Invoke-RmAzureHDInsightHiveJob cmdlet.





SYNTAX

Use-AzureRmHDInsightCluster [-ClusterName] <String> [-HttpCredential] <PSCredential> [-DefaultProfile <IAzureContextContainer>]

[-ResourceGroupName <String>] [<CommonParameters>]





DESCRIPTION

The Use-AzureRmHDInsightCluster cmdlet selects the Azure HDInsight cluster for the Invoke-AzureRmHDInsightHiveJob cmdlet to use to submit Hive

jobs.





PARAMETERS

-ClusterName <String>

Specifies the name of the cluster.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HttpCredential <PSCredential>

Specifies the cluster login (HTTP) credentials for the cluster.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

System.String







NOTES









Example 1: Select a cluster for Hive query submission



PS C:\\># Cluster info

PS C:\\>$clusterName = "your-hadoop-001"

PS C:\\>$clusterCreds = Get-Credential



PS C:\\>Use-AzureRmHDInsightCluster `

-ClusterName $clusterName `

-ClusterCredential $clusterCreds



This command selects a cluster for a Hive query submission.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ghtcluster

Get-AzureRmHDInsightCluster

Remove-AzureRmHDInsightCluster