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/aks/spark-job.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: jeconnoc
7
7
8
8
ms.service: container-service
9
9
ms.topic: article
10
-
ms.date: 03/15/2018
10
+
ms.date: 10/18/2019
11
11
ms.author: alehall
12
12
ms.custom: mvc
13
13
---
@@ -39,10 +39,16 @@ Create a resource group for the cluster.
39
39
az group create --name mySparkCluster --location eastus
40
40
```
41
41
42
-
Create the AKS cluster with nodes that are of size `Standard_D3_v2`.
42
+
Create a Service Principal for the cluster. After it is created, you will need the Service Principal appId and password for the next command.
43
43
44
44
```azurecli
45
-
az aks create --resource-group mySparkCluster --name mySparkCluster --node-vm-size Standard_D3_v2
45
+
az ad sp create-for-rbac --name SparkSP
46
+
```
47
+
48
+
Create the AKS cluster with nodes that are of size `Standard_D3_v2`, and values of appId and password passed as service-principal and client-secret parameters.
49
+
50
+
```azurecli
51
+
az aks create --resource-group mySparkCluster --name mySparkCluster --node-vm-size Standard_D3_v2 --generate-ssh-keys --service-principal <APPID> --client-secret <PASSWORD>
46
52
```
47
53
48
54
Connect to the AKS cluster.
@@ -60,7 +66,7 @@ Before running Spark jobs on an AKS cluster, you need to build the Spark source
60
66
Clone the Spark project repository to your development system.
0 commit comments