Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

New-AzureHDInsightClusterConfig

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

New-AzureHDInsightClusterConfig

Creates a non-persisted configuration that describes a Windows Azure HDInsight cluster configuration.

Syntax

Parameter Set: Config ClusterSizeInNodes Only
New-AzureHDInsightClusterConfig [-ClusterSizeInNodes] <Int32> [[-HeadNodeVMSize] <NodeVMSize> ] [ <CommonParameters>]




Detailed Description

Creates a non-persisted configuration that describes a Windows Azure HDInsight cluster configuration.

This topic describes the cmdlet in the 0.8.1 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

Parameters

-ClusterSizeInNodes<Int32>

The number of nodes to be created for this cluster.


Aliases

Nodes,Size

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HeadNodeVMSize<NodeVMSize>

The VM size of the head node for the cluster.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

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

 

Create a cluster configuration

Create a non-persisted configuration that describes a Windows Azure HDInsight cluster configuration. Specify a 4 node cluster.


 

PS C:\> $subid = (Get-AzureSubscription –Current).SubscriptionId$key1 = Get-AzureStorageKey yourblobstorage | %{ $_.Primary }$key2 = Get-AzureStorageKey yoursecondblobstorage | %{ $_.Primary }$creds = Get-Credential$oozieCreds = Get-Credential$hiveCreds = Get-CredentialNew-AzureHDInsightClusterConfig -ClusterSizeInNodes 4 `    | Set-AzureHDInsightDefaultStorage -StorageAccountName yourblobstorage.blob.core.windows.net        -StorageAccountKey $key1 -StorageContainerName &quot;yourcontainer&quot;     | Add-AzureHDInsightStorage -StorageAccountName yoursecondbobstorage.blob.core.windows.net -StorageAccountKey $key2 `    | Add-AzureHDInsightMetastore -SqlAzureServerName &quot;yoursqlserver.database.windows.net&quot; -DatabaseName &quot;yourOozieDatabaseName&quot; -Credential $oozieCreds -MetastoreType OozieMetastore `    | Add-AzureHDInsightMetastore -SqlAzureServerName &quot;yoursqlserver.database.widows.net&quot; -DatabaseName &quot;yourHiveDatabaseName&quot; -Credential $hiveCreds -MetastoreType HiveMetastore  `    | New-AzureHDInsightCluster -Credential $creds

Show:
© 2015 Microsoft