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
88006a62
Commit
88006a62
authored
10 years ago
by
Patrick Wendell
Browse files
Options
Downloads
Patches
Plain Diff
HOTFIX: Minor doc update for sbt change
parent
628932b8
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
README.md
+6
-7
6 additions, 7 deletions
README.md
with
6 additions
and
7 deletions
README.md
+
6
−
7
View file @
88006a62
...
...
@@ -69,29 +69,28 @@ can be run using:
Spark uses the Hadoop core library to talk to HDFS and other Hadoop-supported
storage systems. Because the protocols have changed in different versions of
Hadoop, you must build Spark against the same version that your cluster runs.
You can change the version by setting the
`SPARK_HADOOP_VERSION`
environment
when building Spark.
You can change the version by setting
`-Dhadoop.version`
when building Spark.
For Apache Hadoop versions 1.x, Cloudera CDH MRv1, and other Hadoop
versions without YARN, use:
# Apache Hadoop 1.2.1
$
SPARK_HADOOP_VERSION=1.2.1 sbt/sbt
assembly
$
sbt/sbt -Dhadoop.version=1.2.1
assembly
# Cloudera CDH 4.2.0 with MapReduce v1
$
SPARK_HADOOP_VERSION
=2.0.0-mr1-cdh4.2.0
sbt/sbt
assembly
$
sbt/sbt -Dhadoop.version
=2.0.0-mr1-cdh4.2.0 assembly
For Apache Hadoop 2.2.X, 2.1.X, 2.0.X, 0.23.x, Cloudera CDH MRv2, and other Hadoop versions
with YARN, also set
`SPARK_YARN=true`
:
# Apache Hadoop 2.0.5-alpha
$
SPARK_HADOOP_VERSION=2.0.5-alpha SPARK_YARN=true sbt/sbt
assembly
$
sbt/sbt -Dhadoop.version=2.0.5-alpha -Pyarn
assembly
# Cloudera CDH 4.2.0 with MapReduce v2
$
SPARK_HADOOP_VERSION=2.0.0-cdh4.2.0 SPARK_YARN=true sbt/sbt
assembly
$
sbt/sbt -Dhadoop.version=2.0.0-cdh4.2.0 -Pyarn
assembly
# Apache Hadoop 2.2.X and newer
$
SPARK_HADOOP_VERSION=2.2.0 SPARK_YARN=true sbt/sbt
assembly
$
sbt/sbt -Dhadoop.version=2.2.0 -Pyarn
assembly
When developing a Spark application, specify the Hadoop version by adding the
"hadoop-client" artifact to your project's dependencies. For example, if you're
...
...
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