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
589b83a1
Commit
589b83a1
authored
11 years ago
by
Prashant Sharma
Browse files
Options
Downloads
Patches
Plain Diff
Disabled yarn 2.2 and added a message in the sbt build
parent
2e89398e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+30
-30
30 additions, 30 deletions
pom.xml
project/SparkBuild.scala
+17
-7
17 additions, 7 deletions
project/SparkBuild.scala
with
47 additions
and
37 deletions
pom.xml
+
30
−
30
View file @
589b83a1
...
@@ -738,39 +738,39 @@
...
@@ -738,39 +738,39 @@
</dependencyManagement>
</dependencyManagement>
</profile>
</profile>
<profile>
<!--
<profile>
-->
<id>
new-yarn
</id>
<!--
<id>new-yarn</id>
-->
<properties>
<!--
<properties>
-->
<akka.group>
org.spark-project
</akka.group>
<!--
<akka.group>org.spark-project</akka.group>
-->
<akka.version>
2.0.5-protobuf-2.5-java-1.5
</akka.version>
<!--
<akka.version>2.0.5-protobuf-2.5-java-1.5</akka.version>
-->
<hadoop.major.version>
2
</hadoop.major.version>
<!--
<hadoop.major.version>2</hadoop.major.version>
-->
<hadoop.version>
2.2.0
</hadoop.version>
<!--
<hadoop.version>2.2.0</hadoop.version>
-->
<protobuf.version>
2.5.0
</protobuf.version>
<!--
<protobuf.version>2.5.0</protobuf.version>
-->
</properties>
<!--
</properties>
-->
<modules>
<!--
<modules>
-->
<module>
new-yarn
</module>
<!--
<module>new-yarn</module>
-->
</modules>
<!--
</modules>
-->
<repositories>
<!--
<repositories>
-->
<repository>
<!--
<repository>
-->
<id>
maven-root
</id>
<!--
<id>maven-root</id>
-->
<name>
Maven root repository
</name>
<!--
<name>Maven root repository</name>
-->
<url>
http://repo1.maven.org/maven2/
</url>
<!--
<url>http://repo1.maven.org/maven2/</url>
-->
<releases>
<!--
<releases>
-->
<enabled>
true
</enabled>
<!--
<enabled>true</enabled>
-->
</releases>
<!--
</releases>
-->
<snapshots>
<!--
<snapshots>
-->
<enabled>
false
</enabled>
<!--
<enabled>false</enabled>
-->
</snapshots>
<!--
</snapshots>
-->
</repository>
<!--
</repository>
-->
</repositories>
<!--
</repositories>
-->
<dependencyManagement>
<!--
<dependencyManagement>
-->
<dependencies>
<!--
<dependencies>
-->
</dependencies>
<!--
</dependencies>
-->
</dependencyManagement>
<!--
</dependencyManagement>
-->
</profile>
<!--
</profile>
-->
<profile>
<profile>
<id>
repl-bin
</id>
<id>
repl-bin
</id>
...
...
This diff is collapsed.
Click to expand it.
project/SparkBuild.scala
+
17
−
7
View file @
589b83a1
...
@@ -78,18 +78,28 @@ object SparkBuild extends Build {
...
@@ -78,18 +78,28 @@ object SparkBuild extends Build {
}
}
case
Some
(
v
)
=>
v
.
toBoolean
case
Some
(
v
)
=>
v
.
toBoolean
}
}
lazy
val
isYarnEnabled
=
scala
.
util
.
Properties
.
envOrNone
(
"SPARK_YARN"
)
match
{
lazy
val
isYarnEnabled
=
scala
.
util
.
Properties
.
envOrNone
(
"SPARK_YARN"
)
match
{
case
None
=>
DEFAULT_YARN
case
None
=>
DEFAULT_YARN
case
Some
(
v
)
=>
v
.
toBoolean
case
Some
(
v
)
=>
v
.
toBoolean
}
}
if
(
isNewHadoop
&&
isYarnEnabled
)
{
println
(
"""Yarn with Hadoop version 2.2.x is not yet expected to work.
Please set env SPARK_HADOOP_VERSION to appropriate version or set SPARK_YARN to false."""
)
throw
new
Exception
(
"Yarn with Hadoop version 2.2.x is not yet expected to work."
)
}
// Build against a protobuf-2.5 compatible Akka if Hadoop 2 is used.
// Build against a protobuf-2.5 compatible Akka if Hadoop 2 is used.
lazy
val
protobufVersion
=
if
(
isNewHadoop
)
"2.5.0"
else
"2.4.1"
//
lazy val protobufVersion = if (isNewHadoop) "2.5.0" else "2.4.1"
lazy
val
akkaVersion
=
if
(
isNewHadoop
)
"2.0.5-protobuf-2.5-java-1.5"
else
"2.0.5"
//
lazy val akkaVersion = if (isNewHadoop) "2.0.5-protobuf-2.5-java-1.5" else "2.0.5"
lazy
val
akkaGroup
=
if
(
isNewHadoop
)
"org.spark-project"
else
"com.typesafe.akka"
//
lazy val akkaGroup = if (isNewHadoop) "org.spark-project" else "com.typesafe.akka"
// Conditionally include the yarn sub-project
// Conditionally include the yarn sub-project
lazy
val
yarn
=
Project
(
"yarn"
,
file
(
if
(
isNewHadoop
)
"new-yarn"
else
"yarn"
),
settings
=
yarnSettings
)
dependsOn
(
core
)
//lazy val yarn = Project("yarn", file(if (isNewHadoop) "new-yarn" else "yarn"), settings = yarnSettings) dependsOn(core)
lazy
val
yarn
=
Project
(
"yarn"
,
file
(
"yarn"
),
settings
=
yarnSettings
)
dependsOn
(
core
)
lazy
val
maybeYarn
=
if
(
isYarnEnabled
)
Seq
[
ClasspathDependency
](
yarn
)
else
Seq
[
ClasspathDependency
]()
lazy
val
maybeYarn
=
if
(
isYarnEnabled
)
Seq
[
ClasspathDependency
](
yarn
)
else
Seq
[
ClasspathDependency
]()
lazy
val
maybeYarnRef
=
if
(
isYarnEnabled
)
Seq
[
ProjectReference
](
yarn
)
else
Seq
[
ProjectReference
]()
lazy
val
maybeYarnRef
=
if
(
isYarnEnabled
)
Seq
[
ProjectReference
](
yarn
)
else
Seq
[
ProjectReference
]()
...
@@ -226,8 +236,8 @@ object SparkBuild extends Build {
...
@@ -226,8 +236,8 @@ object SparkBuild extends Build {
"org.xerial.snappy"
%
"snappy-java"
%
"1.0.5"
,
"org.xerial.snappy"
%
"snappy-java"
%
"1.0.5"
,
"org.ow2.asm"
%
"asm"
%
"4.0"
,
"org.ow2.asm"
%
"asm"
%
"4.0"
,
"com.google.protobuf"
%
"protobuf-java"
%
"2.4.1"
,
"com.google.protobuf"
%
"protobuf-java"
%
"2.4.1"
,
akkaGroup
%%
"akka-remote"
%
"2.2.3"
excludeAll
(
excludeNetty
),
"com.typesafe.akka"
%%
"akka-remote"
%
"2.2.3"
excludeAll
(
excludeNetty
),
akkaGroup
%%
"akka-slf4j"
%
"2.2.3"
excludeAll
(
excludeNetty
),
"com.typesafe.akka"
%%
"akka-slf4j"
%
"2.2.3"
excludeAll
(
excludeNetty
),
"net.liftweb"
%%
"lift-json"
%
"2.5.1"
excludeAll
(
excludeNetty
),
"net.liftweb"
%%
"lift-json"
%
"2.5.1"
excludeAll
(
excludeNetty
),
"it.unimi.dsi"
%
"fastutil"
%
"6.4.4"
,
"it.unimi.dsi"
%
"fastutil"
%
"6.4.4"
,
"colt"
%
"colt"
%
"1.2.0"
,
"colt"
%
"colt"
%
"1.2.0"
,
...
@@ -311,7 +321,7 @@ object SparkBuild extends Build {
...
@@ -311,7 +321,7 @@ object SparkBuild extends Build {
"org.eclipse.paho"
%
"mqtt-client"
%
"0.4.0"
,
"org.eclipse.paho"
%
"mqtt-client"
%
"0.4.0"
,
"com.github.sgroschupf"
%
"zkclient"
%
"0.1"
excludeAll
(
excludeNetty
),
"com.github.sgroschupf"
%
"zkclient"
%
"0.1"
excludeAll
(
excludeNetty
),
"org.twitter4j"
%
"twitter4j-stream"
%
"3.0.3"
excludeAll
(
excludeNetty
),
"org.twitter4j"
%
"twitter4j-stream"
%
"3.0.3"
excludeAll
(
excludeNetty
),
akkaGroup
%%
"akka-zeromq"
%
"2.2.3"
excludeAll
(
excludeNetty
)
"com.typesafe.akka"
%%
"akka-zeromq"
%
"2.2.3"
excludeAll
(
excludeNetty
)
)
)
)
)
...
...
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