Skip to content

Commit f39daa6

Browse files
author
Andrew Or
committed
Do not make network-yarn an assembly module
Currently the user will have to add all three network jars to the NM class path. A future PR will use a maven plugin to merge these into one.
1 parent 761f58a commit f39daa6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

make-distribution.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DI
182182
cp "$FWDIR"/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/"
183183
cp "$FWDIR"/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/"
184184
cp "$FWDIR"/network/yarn/target/scala*/spark-network-yarn*.jar "$DISTDIR/lib/"
185+
cp "$FWDIR"/network/yarn/target/scala*/spark-network-shuffle*.jar "$DISTDIR/lib/"
186+
cp "$FWDIR"/network/yarn/target/scala*/spark-network-common*.jar "$DISTDIR/lib/"
185187

186188
# Copy example sources (needed for python and SQL)
187189
mkdir -p "$DISTDIR/examples/src/main"

project/SparkBuild.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ object BuildCommons {
3838
"streaming-flume", "streaming-kafka", "streaming-mqtt", "streaming-twitter",
3939
"streaming-zeromq").map(ProjectRef(buildLocation, _))
4040

41-
val optionallyEnabledProjects@Seq(yarn, yarnStable, yarnAlpha, java8Tests, sparkGangliaLgpl, sparkKinesisAsl) =
42-
Seq("yarn", "yarn-stable", "yarn-alpha", "java8-tests", "ganglia-lgpl", "kinesis-asl")
43-
.map(ProjectRef(buildLocation, _))
41+
val optionallyEnabledProjects@Seq(yarn, yarnStable, yarnAlpha, networkYarn, java8Tests,
42+
sparkGangliaLgpl, sparkKinesisAsl) = Seq("yarn", "yarn-stable", "yarn-alpha", "network-yarn",
43+
"java8-tests", "ganglia-lgpl", "kinesis-asl").map(ProjectRef(buildLocation, _))
4444

45-
val assemblyProjects@Seq(assembly, examples, networkYarn) =
46-
Seq("assembly", "examples", "network-yarn").map(ProjectRef(buildLocation, _))
45+
val assemblyProjects@Seq(assembly, examples) = Seq("assembly", "examples")
46+
.map(ProjectRef(buildLocation, _))
4747

4848
val tools = ProjectRef(buildLocation, "tools")
4949
// Root project.

0 commit comments

Comments
 (0)