File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ export SGX_ENABLED=true
4
+ export IS_DRIVER=true
5
+ export SPARK_VERSION=2.3.1
6
+ export SGX_USE_SHMEM=true
7
+ export SGXLKL_SHMEM_FILE=sgx-lkl-shmem-driver
8
+ export SGXLKL_SHMEM_SIZE=10240000
9
+ export PREFETCH=8
10
+ export CONNECTIONS=4
11
+ export SPARK_LOCAL_IP=127.0.0.1
12
+ export SPARK_JOBNAME=kmeans
13
+
14
+ rm -rf $( pwd) /output
15
+
16
+ ./bin/spark-submit \
17
+ --class org.apache.spark.examples.mllib.KMeansExample \
18
+ --master spark://kiwi01.doc.res.ic.ac.uk:7077 \
19
+ --deploy-mode client \
20
+ --verbose \
21
+ --executor-memory 1g \
22
+ --name $SPARK_JOBNAME \
23
+ --conf " spark.app.id=$SPARK_JOBNAME " \
24
+ --conf " spark.executor.extraLibraryPath=$( pwd) /lib" \
25
+ --conf " spark.driver.extraLibraryPath=$( pwd) /lib" \
26
+ --conf " spark.driver.extraClassPath=$( pwd) /assembly/target/scala-2.11/jars/*:$( pwd) /examples/target/scala-2.11/jars/*" \
27
+ --conf " spark.driver.extraJavaOptions=-Dlog4j.configuration=file:$( pwd) /conf/log4j.properties" \
28
+ examples/target/scala-2.11/jars/spark-examples_2.11-${SPARK_VERSION} -SNAPSHOT.jar $( pwd) /data/mllib/kmeans_data.txt 2>&1 | tee outside-driver
You can’t perform that action at this time.
0 commit comments