-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-49969][BUILD] Simplify dependency management in YARN module #48468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+30
−126
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,43 +29,8 @@ | |
| <name>Spark Project YARN</name> | ||
| <properties> | ||
| <sbt.project.name>yarn</sbt.project.name> | ||
| <jersey-1.version>1.19</jersey-1.version> | ||
| </properties> | ||
|
|
||
| <profiles> | ||
| <profile> | ||
| <id>hadoop-3</id> | ||
| <activation> | ||
| <activeByDefault>true</activeByDefault> | ||
| </activation> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.hadoop</groupId> | ||
| <artifactId>hadoop-client-runtime</artifactId> | ||
| <version>${hadoop.version}</version> | ||
| <scope>${hadoop.deps.scope}</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.hadoop</groupId> | ||
| <artifactId>hadoop-client-minicluster</artifactId> | ||
| <version>${hadoop.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- Used by MiniYARNCluster --> | ||
| <dependency> | ||
| <groupId>org.bouncycastle</groupId> | ||
| <artifactId>bcprov-jdk18on</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.bouncycastle</groupId> | ||
| <artifactId>bcpkix-jdk18on</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| </profile> | ||
| </profiles> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.spark</groupId> | ||
|
|
@@ -102,6 +67,35 @@ | |
| <groupId>org.apache.hadoop</groupId> | ||
| <artifactId>hadoop-client-api</artifactId> | ||
| <version>${hadoop.version}</version> | ||
| <scope>${hadoop.deps.scope}</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.hadoop</groupId> | ||
| <artifactId>hadoop-client-runtime</artifactId> | ||
| <version>${hadoop.version}</version> | ||
| <scope>${hadoop.deps.scope}</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.hadoop</groupId> | ||
| <artifactId>hadoop-client-minicluster</artifactId> | ||
| <version>${hadoop.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <!-- Used by MiniYARNCluster --> | ||
| <dependency> | ||
| <groupId>javax.xml.bind</groupId> | ||
| <artifactId>jaxb-api</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.bouncycastle</groupId> | ||
| <artifactId>bcprov-jdk18on</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.bouncycastle</groupId> | ||
| <artifactId>bcpkix-jdk18on</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <!-- Explicit listing of transitive deps that are shaded. Otherwise, odd compiler crashes. --> | ||
|
|
@@ -135,22 +129,6 @@ | |
| </dependency> | ||
| <!-- End of shaded deps. --> | ||
|
|
||
| <!-- | ||
| SPARK-10059: Explicitly add JSP dependencies for tests since the MiniYARN cluster needs them. | ||
| --> | ||
| <dependency> | ||
| <groupId>org.eclipse.jetty.orbit</groupId> | ||
| <artifactId>javax.servlet.jsp</artifactId> | ||
| <version>2.2.0.v201112011158</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.jetty.orbit</groupId> | ||
| <artifactId>javax.servlet.jsp.jstl</artifactId> | ||
| <version>1.2.0.v201105211821</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>org.mockito</groupId> | ||
| <artifactId>mockito-core</artifactId> | ||
|
|
@@ -166,65 +144,6 @@ | |
| <artifactId>byte-buddy-agent</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <!-- | ||
| Jersey 1 dependencies only required for YARN integration testing. Creating a YARN cluster | ||
| in the JVM requires starting a Jersey 1-based web application. | ||
| --> | ||
| <dependency> | ||
| <groupId>com.sun.jersey</groupId> | ||
| <artifactId>jersey-core</artifactId> | ||
| <scope>test</scope> | ||
| <version>${jersey-1.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sun.jersey</groupId> | ||
| <artifactId>jersey-json</artifactId> | ||
| <scope>test</scope> | ||
| <version>${jersey-1.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sun.jersey</groupId> | ||
| <artifactId>jersey-server</artifactId> | ||
| <scope>test</scope> | ||
| <version>${jersey-1.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sun.jersey.contribs</groupId> | ||
| <artifactId>jersey-guice</artifactId> | ||
| <scope>test</scope> | ||
| <version>${jersey-1.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.sun.jersey</groupId> | ||
| <artifactId>jersey-servlet</artifactId> | ||
| <scope>test</scope> | ||
| <version>${jersey-1.version}</version> | ||
| </dependency> | ||
|
|
||
| <!-- These dependencies are duplicated from core, because dependencies in the "provided" | ||
| scope are not transitive.--> | ||
| <dependency> | ||
| <groupId>${hive.group}</groupId> | ||
| <artifactId>hive-exec</artifactId> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Historically, |
||
| <classifier>${hive.classifier}</classifier> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>${hive.group}</groupId> | ||
| <artifactId>hive-metastore</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.thrift</groupId> | ||
| <artifactId>libthrift</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.thrift</groupId> | ||
| <artifactId>libfb303</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hadoop shaded client completely cut off the jersey 1 deps