forked from intel/BigDL-PPML-Azure-Occlum-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_nytaxi_k8s.sh
20 lines (20 loc) · 964 Bytes
/
run_nytaxi_k8s.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
IMAGE=intelanalytics/bigdl-ppml-azure-occlum:2.1.0
${SPARK_HOME}/bin/spark-submit \
--master k8s://https://${kubernetes_master_url}:${k8s_apiserver_port} \
--deploy-mode cluster \
--name spark-nytaxi \
--class AzureNytaxi \
--driver-cores 4 \
--executor-cores 4 \
--conf spark.executor.instances=1 \
--conf spark.rpc.netty.dispatcher.numThreads=128 \
--conf spark.kubernetes.container.image=${IMAGE} \
--conf spark.kubernetes.authenticate.driver.serviceAccountName=spark \
--conf spark.kubernetes.executor.deleteOnTermination=false \
--conf spark.kubernetes.driver.podTemplateFile=./driver.yaml \
--conf spark.kubernetes.executor.podTemplateFile=./executor.yaml \
--conf spark.kubernetes.sgx.log.level=off \
--conf spark.executorEnv.SGX_EXECUTOR_JVM_MEM_SIZE="1g" \
--conf spark.kubernetes.driverEnv.SGX_DRIVER_JVM_MEM_SIZE="1g" \
local:/bin/jars/spark-azure-nytaxi-1.0-SNAPSHOT.jar