Manage Apache Hadoop clusters in HDInsight using the Azure Classic CLI

Learn how to use the Azure Classic CLI to manage Apache Hadoop clusters in Azure HDInsight. The classic CLI is implemented in Node.js. It can be used on any platform that supports Node.js, including Windows, Mac, and Linux.

Important

This article contains content which requires the Azure classic CLI. The current release of the Azure CLI does not have support for the features outlined in this article, so the classic CLI is required.

The classic CLI can be installed side-by-side with the modern Azure CLI, but we recommend using the Azure CLI for all new scripts and deployments where feature support is available. To install the classic CLI, see Install the Azure classic CLI and to install the current CLI, see Install Azure CLI.

Prerequisites

Before you begin this article, you must have the following:

To get help, use the -h switch. For example:

azure hdinsight cluster create -h

Create clusters with the CLI

See Create clusters in HDInsight using the Azure Classic CLI.

List and show cluster details

Use the following commands to list and show cluster details:

azure hdinsight cluster list
azure hdinsight cluster show <Cluster Name>

Command-line view of cluster list

Delete clusters

Use the following command to delete a cluster:

azure hdinsight cluster delete <Cluster Name>

You can also delete a cluster by deleting the resource group that contains the cluster. Please note, this will delete all the resources in the group including the default storage account.

azure group delete <Resource Group Name>

Scale clusters

To change the Apache Hadoop cluster size:

azure hdinsight cluster resize [options] <clusterName> <Target Instance Count>

Enable/disable HTTP access for a cluster

azure hdinsight cluster enable-http-access [options] <Cluster Name> <userName> <password>
azure hdinsight cluster disable-http-access [options] <Cluster Name>

Next steps

In this article, you have learned how to perform different HDInsight cluster administrative tasks. To learn more, see the following articles: