Database Reference
In-Depth Information
info: Use "azure account set" to change to a different one
info: Setting service endpoint to: https://management.core.windows.net/
warn: The "file_name" file contains sensitive information
warn: Remember to delete it now that it has been imported
info: Account publish settings imported successfully
info: account import command OK
To list the existing HDInsight clusters in your subscription, you can use the following command:
azure hdinsight cluster list
The output will be the list of your already-provisioned clusters in the running state . It will be something similar
to the following, which I generated with four HDInsight clusters under my subscription:
info: Executing command hdinsight cluster list
+ Getting HDInsight servers
data: Name Location State
data: ----------- ------------ -------
data: SDPHDI1 East US Running
data: democluster North Europe Running
data: datadork West US Running
data: tutorial West US Running
info: hdinsight cluster list command OK
You can use the azure hdinsight cluster delete <ClusterName> command to delete any existing cluster.
To create a new cluster using the CLI, you need to provide the cluster name, subscription information, and other
details, similar to provisioning a cluster using PowerShell or the .NET SDK. Listing 4-6 shows a sample command to
create a new HDInsight cluster using CLI.
Listing 4-6. Creating a Cluster Using CLI
azure hdinsight cluster create --clusterName <ClusterName>
--storageAccountName <StorageAccountName>
--storageAccountKey <storageAccountKey>
--storageContainer <StorageContainer>
--nodes <NumberOfNodes>
--location <DataCenterLocation>
--username <HDInsightClusterUsername>
--clusterPassword <HDInsightClusterPassword>
Typically, you provision an HDInsight cluster, run jobs on it, and then delete the cluster to cut down the cost. The
command-line interface also gives you the option to save the configurations into a file so that you can reuse it every time
you provision a cluster. This is basically another way of automating cluster provisioning and several other administrative
tasks. For comprehensive reference documentation on the cross-platform CLI tools, have a look at the following:
http://www.windowsazure.com/en-us/manage/install-and-configure-cli/
 
Search WWH ::




Custom Search