-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall_spark.sh
More file actions
16 lines (12 loc) · 822 Bytes
/
install_spark.sh
File metadata and controls
16 lines (12 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Create namespace "spark" where will run Jobs
kubectl create namespace spark --dry-run=client -o yaml | kubectl apply -f -
# Create service account "spark" to spark-operator allow submit jobs
kubectl create serviceaccount spark -n spark --dry-run=client -o yaml | kubectl apply -f -
kubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=spark:spark --namespace=spark --dry-run=client -o yaml | kubectl apply -f -
# Install spark operator
helm upgrade --install spark-operator spark-operator/spark-operator --debug \
--namespace spark-operator \
--create-namespace \
-f spark/helm-release/values.yaml
kubectl create configmap -n spark-operator spark-config --from-file=./spark/docker/spark-custom/conf/spark-defaults.conf --dry-run=client -o yaml | kubectl apply -f -