Skip to content

Commit

Permalink
added build instructions and arguments to spark-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatrix committed May 7, 2020
1 parent e58412b commit cb81681
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions chapter4/scala/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
### How to build the package
1. sbt clean package
2. mkdir jars
3. cp main-scala-chapter4_2.12-1.0.jar from the target/scala-2.12 directory into the jars/
### How to run the code

To run the Scala code for this chapter:

* `spark-submit --class main.scala.chapter4.Example4_1 jars/main-scala-chapter4_2.12-1.0.jar <args>`
* `spark-submit --class main.scala.chapter4.SparkTables jars/main-scala-chapter4_2.12-1.0.jar <args>`
* `spark-submit --class main.scala.chapter4.Example4_1 jars/main-scala-chapter4_2.12-1.0.jar ../data/us_population.json`
* `spark-submit --class main.scala.chapter4.SparkTables jars/main-scala-chapter4_2.12-1.0.jar ../data/us_population.json`

0 comments on commit cb81681

Please sign in to comment.