forked from databricks/LearningSparkV2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added build instructions and arguments to spark-submit
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |