Database Reference
In-Depth Information
Now you have all the necessary information to spin up a new cluster using the cmdlet. The following snippet
shows you the command with all the required parameters to provision a new HDInsight cluster:
New-AzureHDInsightCluster -SubscriptionId $subid -Certificate $cert -Name AutomatedHDI
-Location "East US" - DefaultStorageAccountName hdinsightstorage.blob.core.windows.net
-DefaultStorageAccountKey $key1 -DefaultStorageContainerName "democluster"
-UserName "admin" -Password "***************" -ClusterSizeInNodes 2
Your Windows Azure Management Portal will soon display the progress of your cluster provisioning,
as shown in Figure 4-11 .
Figure 4-11. Cluster provisioning in progress
On completion of the cluster creation, you will see the PowerShell prompt displaying the details of the newly
created cluster:
PS C:\> New-AzureHDInsightCluster
-SubscriptionId $subid
-Certificate $cert
-Name AutomatedHDI
-Location "East US"
-DefaultStorageAccountName hdinsightstorage.blob.core.windows.net
-DefaultStorageAccountKey $key1
-DefaultStorageContainerName "democluster"
-UserName "admin"
-Password "******************"
-ClusterSizeInNodes 2
Name : AutomatedHDI
ConnectionUrl : https://AutomatedHDI.azurehdinsight.net
State : Running
CreateDate : 9/8/2013 3:34:07 AM
UserName : admin
Location : East US
ClusterSizeInNodes : 2
If there is an error in the specified command, the PowerShell console will show you the error messages. For
example, if the supplied cluster password does not meet the password-compliance policy, you will see an error
message similar to the following while trying to provision a new cluster:
New-AzureHDInsightCluster : Unable to complete the 'Create' operation. Operation failed with code '400'.
Cluster leftbehind state: 'Specified Cluster password is invalid. Ensure password is 10 characters long
and has atleast onenumber, one uppercase and one special character(spaces not allowed)'. Message: 'NULL'.
 
Search WWH ::




Custom Search