Use-AzureRmHDInsightCluster

Use-AzureRmHDInsightCluster

Updated: November 4, 2015

Applies To: Azure PowerShell 1.0

Use-AzureRmHDInsightCluster

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

Syntax

Parameter Set: Default
Use-AzureRmHDInsightCluster [-ClusterName] <String> [-HttpCredential] <PSCredential> [-ResourceGroupName <String> ] [ <CommonParameters>]




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


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HttpCredential<PSCredential>

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


Aliases

ClusterCredential

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ResourceGroupName<String>

Specifies the name of the resource group.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Select a cluster for Hive query submission

This command selects a cluster for a 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

Related topics

Show:
© 2016 Microsoft