-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrun_guide_line.txt
44 lines (30 loc) · 1.43 KB
/
run_guide_line.txt
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
43
44
# Create sbt file 'build.sbt' with below parameters
name := "slowly changing dimention 2"
version := "1.0"
scalaVersion := "2.11.8"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.3.0"
# Your directory layout should look like this
$ find .
.
./build.sbt
./src
./src/main
./src/main/scala
./src/main/scala/YelpUserScdFirstRun.scala
# Package a jar containing your application
$ sbt package
...
[info] Packaging {..}/{..}/target/scala-2.11/slowly-changing-dimention-2_2.11-1.0.jar
First Run:
spark-submit --class scd.YelpUserScdFirstRun --master yarn --conf spark.ui.port=12985 --num-executors 4
--executor-memory 1GB target/scala-2.11/slowly-changing-dimention-2_2.11-1.0.jar "20180731"
Monthly Run:
Run for - 20180831
spark-submit --class scd.YelpUserScdMonthlyRun --master yarn --conf spark.ui.port=12990 --num-executors 4
--executor-memory 1GB target/scala-2.11/slowly-changing-dimention-2_2.11-1.0.jar "20180831"
Run for - 20180930
spark-submit --class scd.YelpUserScdMonthlyRun --master yarn --conf spark.ui.port=12990 --num-executors 4
--executor-memory 1GB target/scala-2.11/slowly-changing-dimention-2_2.11-1.0.jar "20180930"
Run for - 20181031
spark-submit --class scd.YelpUserScdMonthlyRun --master yarn --conf spark.ui.port=12990 --num-executors 4
--executor-memory 1GB target/scala-2.11/slowly-changing-dimention-2_2.11-1.0.jar "20181031"