Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
0eab7a78
Commit
0eab7a78
authored
11 years ago
by
Reynold Xin
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a couple typos and formating problems in the YARN documentation.
parent
7760d78b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/running-on-yarn.md
+11
-9
11 additions, 9 deletions
docs/running-on-yarn.md
with
11 additions
and
9 deletions
docs/running-on-yarn.md
+
11
−
9
View file @
0eab7a78
...
...
@@ -14,29 +14,31 @@ Ex: mvn -Phadoop2-yarn clean install
We need a consolidated spark core jar (which bundles all the required dependencies) to run Spark jobs on a yarn cluster.
This can be built either through sbt or via maven.
-
Building spark assembled jar via sbt.
It is a manual process of enabling it in project/SparkBuild.scala.
-
Building spark assembled jar via sbt.
It is a manual process of enabling it in project/SparkBuild.scala.
Please comment out the
HADOOP_VERSION, HADOOP_MAJOR_VERSION and HADOOP_YARN
variables before the line 'For Hadoop 2 YARN support'
Next, uncomment the subsequent 3 variable declaration lines (for these three variables) which enable hadoop yarn support.
Assembly of the jar Ex:
./sbt/sbt clean assembly
Assembly of the jar Ex:
./sbt/sbt clean assembly
The assembled jar would typically be something like :
./core/target/spark-core-assembly-0.8.0-SNAPSHOT.jar
`
./core/target/spark-core-assembly-0.8.0-SNAPSHOT.jar
`
-
Building spark assembled jar via
sbt
.
Use the hadoop2-yarn profile and execute the package target.
-
Building spark assembled jar via
Maven
.
Use the hadoop2-yarn profile and execute the package target.
Something like this. Ex:
$ mvn -Phadoop2-yarn clean package -DskipTests=true
mvn -Phadoop2-yarn clean package -DskipTests=true
This will build the shaded (consolidated) jar. Typically something like :
./repl-bin/target/spark-repl-bin-
<VERSION>
-shaded-hadoop2-yarn.jar
`
./repl-bin/target/spark-repl-bin-<VERSION>-shaded-hadoop2-yarn.jar
`
# Preparations
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment