Skip to content

Commit 22a8044

Browse files
author
Florian Kelbert
committed
submitkmeans
1 parent 5b63415 commit 22a8044

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

submitkmeans.sh

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)