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
d1a6f7aa
Commit
d1a6f7aa
authored
11 years ago
by
Raymond Liu
Browse files
Options
Downloads
Patches
Plain Diff
Use unmanaged source dir to include common yarn code
parent
c5422e02
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
project/SparkBuild.scala
+15
-11
15 additions, 11 deletions
project/SparkBuild.scala
with
15 additions
and
11 deletions
project/SparkBuild.scala
+
15
−
11
View file @
d1a6f7aa
...
@@ -85,11 +85,11 @@ object SparkBuild extends Build {
...
@@ -85,11 +85,11 @@ object SparkBuild extends Build {
}
}
// Conditionally include the yarn sub-project
// Conditionally include the yarn sub-project
lazy
val
yarn
Common
=
Project
(
"yarn
-common
"
,
file
(
"yarn/
common
"
),
settings
=
yarn
Common
Settings
)
dependsOn
(
core
)
lazy
val
yarn
20
=
Project
(
"yarn
2-alpha
"
,
file
(
"yarn/
2.0
"
),
settings
=
yarn
20
Settings
)
dependsOn
(
core
)
lazy
val
yarn
API
=
Project
(
"yarn
-api"
,
file
(
if
(
isNewHadoop
)
"yarn/2.2"
else
"yarn/2.0
"
),
settings
=
yarn
API
Settings
)
dependsOn
(
yarnCommon
)
lazy
val
yarn
22
=
Project
(
"yarn
2-stable"
,
file
(
"yarn/2.2
"
),
settings
=
yarn
22
Settings
)
dependsOn
(
core
)
lazy
val
yarnScheduler
=
Project
(
"yarn"
,
file
(
"yarn/scheduler"
),
settings
=
yarnSchedulerSettings
)
dependsOn
(
yarnAPI
)
lazy
val
maybeYarn
=
if
(
isYarnEnabled
)
Seq
[
ClasspathDependency
](
yarnCommon
,
yarnAPI
,
yarnScheduler
)
else
Seq
[
ClasspathDependency
]()
lazy
val
maybeYarn
=
if
(
isYarnEnabled
)
Seq
[
ClasspathDependency
](
if
(
isNewHadoop
)
yarn22
else
yarn20
)
else
Seq
[
ClasspathDependency
]()
lazy
val
maybeYarnRef
=
if
(
isYarnEnabled
)
Seq
[
ProjectReference
](
yarnCommon
,
yarnAPI
,
yarnScheduler
)
else
Seq
[
ProjectReference
]()
lazy
val
maybeYarnRef
=
if
(
isYarnEnabled
)
Seq
[
ProjectReference
](
if
(
isNewHadoop
)
yarn22
else
yarn20
)
else
Seq
[
ProjectReference
]()
// Everything except assembly, tools and examples belong to packageProjects
// Everything except assembly, tools and examples belong to packageProjects
lazy
val
packageProjects
=
Seq
[
ProjectReference
](
core
,
repl
,
bagel
,
streaming
,
mllib
)
++
maybeYarnRef
lazy
val
packageProjects
=
Seq
[
ProjectReference
](
core
,
repl
,
bagel
,
streaming
,
mllib
)
++
maybeYarnRef
...
@@ -319,16 +319,20 @@ object SparkBuild extends Build {
...
@@ -319,16 +319,20 @@ object SparkBuild extends Build {
)
)
)
)
def
yarnAPISettings
=
sharedSettings
++
Seq
(
def
yarnCommonSettings
=
sharedSettings
++
Seq
(
name
:=
"spark-yarn-api"
unmanagedSourceDirectories
in
Compile
<++=
baseDirectory
{
base
=>
Seq
(
base
/
"../common/src/main/scala"
)
}
)
++
extraYarnSettings
)
++
extraYarnSettings
def
yarn
Common
Settings
=
shared
Settings
++
Seq
(
def
yarn
20
Settings
=
yarnCommon
Settings
++
Seq
(
name
:=
"spark-yarn-
common
"
name
:=
"spark-yarn-
2.0
"
)
)
def
yarn
Scheduler
Settings
=
shared
Settings
++
Seq
(
def
yarn
22
Settings
=
yarnCommon
Settings
++
Seq
(
name
:=
"spark-yarn"
name
:=
"spark-yarn
-2.2
"
)
)
// Conditionally include the YARN dependencies because some tools look at all sub-projects and will complain
// Conditionally include the YARN dependencies because some tools look at all sub-projects and will complain
...
...
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