-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmunge.sh
44 lines (26 loc) · 1.02 KB
/
munge.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# echo "testing run of a shell script
# http://localhost:8081/
#uploadPythonPi()
uploadSimpleApp()
{
sudo docker cp SimpleApp/SimpleApp.scala bdu_spark:/home/virtuser/SimpleApp/src/main/scala/SimpleApp.scala
sudo docker cp SimpleApp/simple.sbt bdu_spark:/home/virtuser/SimpleApp/simple.sbt
# run with : $SPARK_HOME/bin/spark-submit --class "SimpleApp" --master local[4] target/scala-2.10/simple-project_2.10-1.0.jar
}
uploadSparkPi()
{
sudo docker cp SparkPi/SparkPi.scala bdu_spark:/home/virtuser/SparkPi/src/main/scala/SparkPi.scala
sudo docker cp SparkPi/sparkpi.bst bdu_spark:/home/virtuser/SparkPi/sparkpi.bst
sudo docker cp SparkPi/sparksubmit.sh bdu_spark:/home/virtuser/SparkPi/sparksubmit.sh
}
uploadPythonPi()
{
sudo docker cp PythonPi/PythonPi.py bdu_spark:/home/virtuser/PythonPi/PythonPi.py
sudo docker cp PythonPi/PythonPi.py bdu_spark:/home/virtuser/PythonPi/sparksubmit.sh
}
dockerImage()
{
sudo docker start bdu_spark
sudo docker attach bdu_spark
}