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
d2071e8f
Commit
d2071e8f
authored
10 years ago
by
Patrick Wendell
Browse files
Options
Downloads
Patches
Plain Diff
Revert "[WIP] [SPARK-3996]: Shade Jetty in Spark deliverables"
This reverts commit
f240fe39
.
parent
5338772f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bin/compute-classpath.sh
+1
-3
1 addition, 3 deletions
bin/compute-classpath.sh
core/pom.xml
+2
-20
2 additions, 20 deletions
core/pom.xml
network/common/pom.xml
+12
-0
12 additions, 0 deletions
network/common/pom.xml
pom.xml
+0
-32
0 additions, 32 deletions
pom.xml
with
15 additions
and
55 deletions
bin/compute-classpath.sh
+
1
−
3
View file @
d2071e8f
...
@@ -50,8 +50,8 @@ fi
...
@@ -50,8 +50,8 @@ fi
if
[
-n
"
$SPARK_PREPEND_CLASSES
"
]
;
then
if
[
-n
"
$SPARK_PREPEND_CLASSES
"
]
;
then
echo
"NOTE: SPARK_PREPEND_CLASSES is set, placing locally compiled Spark"
\
echo
"NOTE: SPARK_PREPEND_CLASSES is set, placing locally compiled Spark"
\
"classes ahead of assembly."
>
&2
"classes ahead of assembly."
>
&2
# Spark classes
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/core/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/core/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/core/target/jars/*"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/repl/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/repl/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/mllib/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/mllib/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/bagel/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/bagel/target/scala-
$SPARK_SCALA_VERSION
/classes"
...
@@ -63,8 +63,6 @@ if [ -n "$SPARK_PREPEND_CLASSES" ]; then
...
@@ -63,8 +63,6 @@ if [ -n "$SPARK_PREPEND_CLASSES" ]; then
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/sql/hive/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/sql/hive/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/sql/hive-thriftserver/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/sql/hive-thriftserver/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/yarn/stable/target/scala-
$SPARK_SCALA_VERSION
/classes"
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/yarn/stable/target/scala-
$SPARK_SCALA_VERSION
/classes"
# Jars for shaded deps in their original form (copied here during build)
CLASSPATH
=
"
$CLASSPATH
:
$FWDIR
/core/target/jars/*"
fi
fi
# Use spark-assembly jar from either RELEASE or assembly directory
# Use spark-assembly jar from either RELEASE or assembly directory
...
...
This diff is collapsed.
Click to expand it.
core/pom.xml
+
2
−
20
View file @
d2071e8f
...
@@ -94,35 +94,22 @@
...
@@ -94,35 +94,22 @@
<groupId>
org.apache.curator
</groupId>
<groupId>
org.apache.curator
</groupId>
<artifactId>
curator-recipes
</artifactId>
<artifactId>
curator-recipes
</artifactId>
</dependency>
</dependency>
<!-- Jetty dependencies promoted to compile here so they are shaded
and inlined into spark-core jar -->
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-plus
</artifactId>
<artifactId>
jetty-plus
</artifactId>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-security
</artifactId>
<artifactId>
jetty-security
</artifactId>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-util
</artifactId>
<artifactId>
jetty-util
</artifactId>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-server
</artifactId>
<artifactId>
jetty-server
</artifactId>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-http
</artifactId>
<scope>
compile
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<artifactId>
commons-lang3
</artifactId>
...
@@ -361,24 +348,19 @@
...
@@ -361,24 +348,19 @@
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<artifactId>
maven-dependency-plugin
</artifactId>
<executions>
<executions>
<!-- When using SPARK_PREPEND_CLASSES Spark classes compiled locally don't use
shaded deps. So here we store jars in their original form which are added
when the classpath is computed. -->
<execution>
<execution>
<id>
copy-dependencies
</id>
<id>
copy-dependencies
</id>
<phase>
package
</phase>
<phase>
package
</phase>
<goals>
<goals>
<goal>
copy-dependencies
</goal>
<goal>
copy-dependencies
</goal>
</goals>
</goals>
<configuration>
<configuration>
<outputDirectory>
${project.build.directory}
</outputDirectory>
<outputDirectory>
${project.build.directory}
</outputDirectory>
<overWriteReleases>
false
</overWriteReleases>
<overWriteReleases>
false
</overWriteReleases>
<overWriteSnapshots>
false
</overWriteSnapshots>
<overWriteSnapshots>
false
</overWriteSnapshots>
<overWriteIfNewer>
true
</overWriteIfNewer>
<overWriteIfNewer>
true
</overWriteIfNewer>
<useSubDirectoryPerType>
true
</useSubDirectoryPerType>
<useSubDirectoryPerType>
true
</useSubDirectoryPerType>
<includeArtifactIds>
<includeArtifactIds>
guava
</includeArtifactIds>
guava,jetty-io,jetty-http,jetty-plus,jetty-util,jetty-server
</includeArtifactIds>
<silent>
true
</silent>
<silent>
true
</silent>
</configuration>
</configuration>
</execution>
</execution>
...
...
This diff is collapsed.
Click to expand it.
network/common/pom.xml
+
12
−
0
View file @
d2071e8f
...
@@ -101,6 +101,18 @@
...
@@ -101,6 +101,18 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-shade-plugin
</artifactId>
<configuration>
<shadedArtifactAttached>
false
</shadedArtifactAttached>
<artifactSet>
<includes>
<include>
com.google.guava:guava
</include>
</includes>
</artifactSet>
</configuration>
</plugin>
</plugins>
</plugins>
</build>
</build>
</project>
</project>
This diff is collapsed.
Click to expand it.
pom.xml
+
0
−
32
View file @
d2071e8f
...
@@ -337,39 +337,25 @@
...
@@ -337,39 +337,25 @@
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
<!-- Shaded deps marked as provided. These are promoted to compile scope
in the modules where we want the shaded classes to appear in the
associated jar. -->
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-http
</artifactId>
<version>
${jetty.version}
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-util
</artifactId>
<artifactId>
jetty-util
</artifactId>
<version>
${jetty.version}
</version>
<version>
${jetty.version}
</version>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-security
</artifactId>
<artifactId>
jetty-security
</artifactId>
<version>
${jetty.version}
</version>
<version>
${jetty.version}
</version>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-plus
</artifactId>
<artifactId>
jetty-plus
</artifactId>
<version>
${jetty.version}
</version>
<version>
${jetty.version}
</version>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.eclipse.jetty
</groupId>
<groupId>
org.eclipse.jetty
</groupId>
<artifactId>
jetty-server
</artifactId>
<artifactId>
jetty-server
</artifactId>
<version>
${jetty.version}
</version>
<version>
${jetty.version}
</version>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<groupId>
com.google.guava
</groupId>
...
@@ -377,8 +363,6 @@
...
@@ -377,8 +363,6 @@
<version>
14.0.1
</version>
<version>
14.0.1
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<!-- End of shaded deps -->
<dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<artifactId>
commons-lang3
</artifactId>
...
@@ -1292,26 +1276,10 @@
...
@@ -1292,26 +1276,10 @@
<shadedArtifactAttached>
false
</shadedArtifactAttached>
<shadedArtifactAttached>
false
</shadedArtifactAttached>
<artifactSet>
<artifactSet>
<includes>
<includes>
<!-- At a minimum we must include this to force effective pom generation -->
<include>
org.spark-project.spark:unused
</include>
<include>
org.spark-project.spark:unused
</include>
<include>
org.eclipse.jetty:jetty-io
</include>
<include>
org.eclipse.jetty:jetty-http
</include>
<include>
org.eclipse.jetty:jetty-plus
</include>
<include>
org.eclipse.jetty:jetty-security
</include>
<include>
org.eclipse.jetty:jetty-util
</include>
<include>
org.eclipse.jetty:jetty-server
</include>
<include>
com.google.guava:guava
</include>
</includes>
</includes>
</artifactSet>
</artifactSet>
<relocations>
<relocations>
<relocation>
<pattern>
org.eclipse.jetty
</pattern>
<shadedPattern>
org.spark-project.jetty
</shadedPattern>
<includes>
<include>
org.eclipse.jetty.**
</include>
</includes>
</relocation>
<relocation>
<relocation>
<pattern>
com.google.common
</pattern>
<pattern>
com.google.common
</pattern>
<shadedPattern>
org.spark-project.guava
</shadedPattern>
<shadedPattern>
org.spark-project.guava
</shadedPattern>
...
...
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