You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/hdinsight/hdinsight-hadoop-create-linux-clusters-azure-cli.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to create Azure HDInsight clusters using the cross-platfo
4
4
ms.service: hdinsight
5
5
ms.topic: how-to
6
6
ms.custom: hdinsightactive, devx-track-azurecli
7
-
ms.date: 10/19/2022
7
+
ms.date: 11/21/2023
8
8
---
9
9
10
10
# Create HDInsight clusters using the Azure CLI
@@ -21,7 +21,7 @@ The steps in this document walk-through creating a HDInsight 4.0 cluster using t
21
21
22
22
## Create a cluster
23
23
24
-
1. Log in to your Azure subscription. If you plan to use Azure Cloud Shell, then select **Try it** in the upper-right corner of the code block. Else, enter the command below:
24
+
1. Log in to your Azure subscription. If you plan to use Azure Cloud Shell, then select **Try it** in the upper-right corner of the code block. Else, enter the following command:
25
25
26
26
```azurecli-interactive
27
27
az login
@@ -30,13 +30,13 @@ The steps in this document walk-through creating a HDInsight 4.0 cluster using t
30
30
# az account set --subscription "SUBSCRIPTIONID"
31
31
```
32
32
33
-
2. Set environment variables. The use of variables in this article is based on Bash. Slight variations will be needed for other environments. See [az-hdinsight-create](/cli/azure/hdinsight#az-hdinsight-create) for a complete list of possible parameters for cluster creation.
33
+
2. Set environment variables. The use of variables in this article is based on Bash. Slight variations are needed for other environments. See [az-hdinsight-create](/cli/azure/hdinsight#az-hdinsight-create) for a complete list of possible parameters for cluster creation.
34
34
35
35
|Parameter | Description |
36
36
|---|---|
37
37
|`--workernode-count`| The number of worker nodes in the cluster. This article uses the variable `clusterSizeInNodes` as the value passed to `--workernode-count`. |
38
38
|`--version`| The HDInsight cluster version. This article uses the variable `clusterVersion` as the value passed to `--version`. See also: [Supported HDInsight versions](./hdinsight-component-versioning.md#supported-hdinsight-versions).|
39
-
|`--type`| Type of HDInsight cluster, like: hadoop, interactivehive, hbase, kafka, spark, rserver, mlservices. This article uses the variable `clusterType` as the value passed to `--type`. See also: [Cluster types and configuration](./hdinsight-hadoop-provision-linux-clusters.md#cluster-type).|
39
+
|`--type`| Type of HDInsight cluster, like: hadoop, interactive hive, hbase, kafka, spark, `rserver`, `mlservices`. This article uses the variable `clusterType` as the value passed to `--type`. See also: [Cluster types and configuration](./hdinsight-hadoop-provision-linux-clusters.md#cluster-type).|
40
40
|`--component-version`|The versions of various Hadoop components, in space-separated versions in 'component=version' format. This article uses the variable `componentVersion` as the value passed to `--component-version`. See also: [Hadoop components](./hdinsight-component-versioning.md).|
41
41
42
42
Replace `RESOURCEGROUPNAME`, `LOCATION`, `CLUSTERNAME`, `STORAGEACCOUNTNAME`, and `PASSWORD` with the desired values. Change values for the other variables as desired. Then enter the CLI commands.
@@ -56,7 +56,7 @@ The steps in this document walk-through creating a HDInsight 4.0 cluster using t
56
56
export componentVersion=Hadoop=3.1
57
57
```
58
58
59
-
3. [Create the resource group](/cli/azure/group#az-group-create) by entering the command below:
59
+
3. [Create the resource group](/cli/azure/group#az-group-create) by entering the following command:
60
60
61
61
```azurecli-interactive
62
62
az group create \
@@ -66,7 +66,7 @@ The steps in this document walk-through creating a HDInsight 4.0 cluster using t
66
66
67
67
For a list of valid locations, use the `az account list-locations` command, and then use one of the locations from the `name` value.
68
68
69
-
4. [Create an Azure Storage account](/cli/azure/storage/account#az-storage-account-create) by entering the command below:
69
+
4. [Create an Azure Storage account](/cli/azure/storage/account#az-storage-account-create) by entering the following command:
70
70
71
71
```azurecli-interactive
72
72
# Note: kind BlobStorage is not available as the default storage account.
@@ -79,7 +79,7 @@ The steps in this document walk-through creating a HDInsight 4.0 cluster using t
79
79
--sku Standard_LRS
80
80
```
81
81
82
-
5. [Extract the primary key from the Azure Storage account](/cli/azure/storage/account/keys#az-storage-account-keys-list) and store it in a variable by entering the command below:
82
+
5. [Extract the primary key from the Azure Storage account](/cli/azure/storage/account/keys#az-storage-account-keys-list) and store it in a variable by entering the following command:
83
83
84
84
```azurecli-interactive
85
85
export AZURE_STORAGE_KEY=$(az storage account keys list \
@@ -88,7 +88,7 @@ The steps in this document walk-through creating a HDInsight 4.0 cluster using t
88
88
--query [0].value -o tsv)
89
89
```
90
90
91
-
6. [Create an Azure Storage container](/cli/azure/storage/container#az-storage-container-create) by entering the command below:
91
+
6. [Create an Azure Storage container](/cli/azure/storage/container#az-storage-container-create) by entering the following command:
0 commit comments