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
c0d37510
Commit
c0d37510
authored
11 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
Some tweaks to CDH/HDP doc
parent
f261d2a6
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/hadoop-third-party-distributions.md
+52
-10
52 additions, 10 deletions
docs/hadoop-third-party-distributions.md
with
52 additions
and
10 deletions
docs/hadoop-third-party-distributions.md
+
52
−
10
View file @
c0d37510
---
layout
:
global
title
:
Running with Cloudera and HortonWorks
Distributions
title
:
Running with Cloudera and HortonWorks
---
Spark can run against all versions of Cloudera's Distribution Including Hadoop (CDH) and
the Hortonworks Data Platform (HDP). There are a few things to keep in mind when using Spark
with
these distributions:
Spark can run against all versions of Cloudera's Distribution Including
Apache
Hadoop (CDH) and
the Hortonworks Data Platform (HDP). There are a few things to keep in mind when using Spark
with
these distributions:
# Compile-time Hadoop Version
When compiling Spark, you'll need to
[
set the HADOOP_VERSION flag
](
http://localhost:4000/index.html#a-note-about-hadoop-versions
)
:
[
set the
SPARK_
HADOOP_VERSION flag
](
http://localhost:4000/index.html#a-note-about-hadoop-versions
)
:
HADOOP_VERSION=1.0.4 sbt/sbt assembly
SPARK_
HADOOP_VERSION=1.0.4 sbt/sbt assembly
The table below lists the corresponding HADOOP_VERSION for each CDH/HDP release. Note that
The table below lists the corresponding
`SPARK_
HADOOP_VERSION
`
code
for each CDH/HDP release. Note that
some Hadoop releases are binary compatible across client versions. This means the pre-built Spark
distribution may "just work" without you needing to compile. That said, we recommend compiling with
the _exact_ Hadoop version you are running to avoid any compatibility errors.
...
...
@@ -22,8 +23,8 @@ the _exact_ Hadoop version you are running to avoid any compatibility errors.
<tr
valign=
"top"
>
<td>
<h3>
CDH Releases
</h3>
<table
class=
"table"
style=
"width:350px;"
>
<tr><th>
Version
</th><th>
HADOOP_VERSION
</th></tr>
<table
class=
"table"
style=
"width:350px;
margin-right: 20px;
"
>
<tr><th>
Release
</th><th>
Version code
</th></tr>
<tr><td>
CDH 4.X.X (YARN mode)
</td><td>
2.0.0-chd4.X.X
</td></tr>
<tr><td>
CDH 4.X.X
</td><td>
2.0.0-mr1-chd4.X.X
</td></tr>
<tr><td>
CDH 3u6
</td><td>
0.20.2-cdh3u6
</td></tr>
...
...
@@ -34,7 +35,7 @@ the _exact_ Hadoop version you are running to avoid any compatibility errors.
<td>
<h3>
HDP Releases
</h3>
<table
class=
"table"
style=
"width:350px;"
>
<tr><th>
Version
</th><th>
HADOOP_VERSION
</th></tr>
<tr><th>
Release
</th><th>
Version code
</th></tr>
<tr><td>
HDP 1.3
</td><td>
1.2.0
</td></tr>
<tr><td>
HDP 1.2
</td><td>
1.1.2
</td></tr>
<tr><td>
HDP 1.1
</td><td>
1.0.3
</td></tr>
...
...
@@ -44,7 +45,47 @@ the _exact_ Hadoop version you are running to avoid any compatibility errors.
</tr>
</table>
# Linking Applications to the Hadoop Version
In addition to compiling Spark itself against the right version, you need to add a Maven dependency on that
version of
`hadoop-client`
to any Spark applications you run, so they can also talk to the HDFS version
on the cluster. If you are using CDH, you also need to add the Cloudera Maven repository.
This looks as follows in SBT:
{% highlight scala %}
libraryDependencies += "org.apache.hadoop" % "hadoop-client" % "
<version>
"
// If using CDH, also add Cloudera repo
resolvers += "Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
{% endhighlight %}
Or in Maven:
{% highlight xml %}
<project>
<dependencies>
...
<dependency>
<groupId>
org.apache.hadoop
</groupId>
<artifactId>
hadoop-client
</artifactId>
<version>
[version]
</version>
</dependency>
</dependencies>
<!-- If using CDH, also add Cloudera repo -->
<repositories>
...
<repository>
<id>
Cloudera repository
</id>
<url>
https://repository.cloudera.com/artifactory/cloudera-repos/
</url>
</repository>
</repositories>
</project>
{% endhighlight %}
# Where to Run Spark
As described in the
[
Hardware Provisioning
](
hardware-provisioning.html#storage-systems
)
guide,
Spark can run in a variety of deployment modes:
...
...
@@ -57,6 +98,7 @@ Spark can run in a variety of deployment modes:
These options are identical for those using CDH and HDP.
# Inheriting Cluster Configuration
If you plan to read and write from HDFS using Spark, there are two Hadoop configuration files that
should be included on Spark's classpath:
...
...
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