forked from apache/spark
-
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.
- Loading branch information
Baohe Zhang
committed
Jun 2, 2020
1 parent
1a3e963
commit 6b00df2
Showing
3 changed files
with
21 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Instructions for running this oozie application: | ||
|
||
- create a directory `spark_hdfs_lr/` in HDFS for the oozie application. | ||
|
||
- upload `workflow.xml` to `spark_hdfs_lr/apps/spark/`. | ||
|
||
- use `mvn clean package` to create the jar package of spark-starter if you haven't done so. | ||
|
||
- upload the jar package `spark-starter/target/spark-starter-2.0-SNAPSHOT-jar-with-dependencies.jar` to `spark_hdfs_lr/apps/lib/`. | ||
|
||
- upload resource files `spark-starter/src/main/resources/data/lr_data.txt` to `spark_hdfs_lr/data/`. | ||
|
||
- update `nameNode` and `jobTracker` in `job.properties` if you are running on the cluster other than AR. | ||
|
||
- export OOZIE_URL, for example, `export OOZIE_URL=https://axonitered-oozie.red.ygrid.yahoo.com:4443/oozie/`. | ||
|
||
- submit the oozie job using `oozie job -run -config job.properties -auth KERBEROS` |
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,5 +1,6 @@ | ||
nameNode=hdfs://axonitered-nn1.red.ygrid.yahoo.com:8020 | ||
jobTracker=axonitered-jt1.red.ygrid.yahoo.com:8032 | ||
wfRoot=spark_hdfs_lr | ||
sparkTag=spark_latest | ||
oozie.libpath=/user/${user.name}/${wfRoot}/apps/lib | ||
oozie.wf.application.path=${nameNode}/user/${user.name}/${wfRoot}/apps/spark |
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