-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsubmit-job.sh
More file actions
executable file
·33 lines (29 loc) · 1.05 KB
/
Copy pathsubmit-job.sh
File metadata and controls
executable file
·33 lines (29 loc) · 1.05 KB
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
#!/bin/bash
### submit wordcount
~/gitrepo/spark/bin/spark-submit --class com.sparkcount.WordCount \
--master spark://master:7077 \
--deploy-mode cluster \
--executor-memory 5g \
--name wordcount \
--conf "spark.app.id=wordcount" \
--supervise \
hdfs://master:9000/usr/spark/jars/spark-count_2.11-0.0.1.jar \
hdfs:/master:9000/usr/input/core-site.xml 20
### submit TestGroupBy
~/gitrepo/spark/bin/spark-submit --class com.sparkcount.TestGroupBy \
--master spark://master:7077 \
--deploy-mode cluster \
--executor-memory 5g \
--name wordcount \
--conf "spark.app.id=groupby" \
--supervise \
hdfs://master:9000/usr/spark/jars/spark-count_2.11-0.0.1.jar \
### submit GroupKeyCheckPoint
~/gitrepo/spark/bin/spark-submit --class com.sparkcount.GroupKeyCheckPoint \
--master spark://master:7077 \
--deploy-mode cluster \
--executor-memory 5g \
--name wordcount \
--conf "spark.app.id=GroupKeyCheckPoint" \
--supervise \
hdfs://master:9000/usr/spark/jars/spark-count_2.11-0.0.1.jar \