Skip to content

[SPARK-15024] NoClassDefFoundError in spark-examples due to Guava relocation - #12800

Closed
atokhy wants to merge 1 commit into
apache:branch-1.6from
atokhy:spark-examples-guava
Closed

[SPARK-15024] NoClassDefFoundError in spark-examples due to Guava relocation#12800
atokhy wants to merge 1 commit into
apache:branch-1.6from
atokhy:spark-examples-guava

Conversation

@atokhy

Copy link
Copy Markdown

What changes were proposed in this pull request?

This change will only shade and relocate Guava in the spark-examples JAR used by the Apache Bigtop distribution (as of writing the Bigtop distribution uses the unshaded JAR). Since only Guava and Jetty are relocated, and since there are 0 references to Jetty in the spark-examples codebase, only Guava needs to be shaded. The shaded spark-assembly JAR provides the rest of the dependencies needed to get the spark-examples to run without any NoClassDefFoundErrors

How was this patch tested?

mvn package -DrecompileMode=all -Pbigtop-dist -Pyarn -Phadoop-2.6 -Phive -Phive-thriftserver -Dprotobuf.version=2.5.0

$ unzip -l target/scala-2.10/spark-examples-1.6.1-hadoop2.6.0.jar | grep org.spark-project.guava | wc -l
1602

@atokhyatokhy changed the title [SPARK-15024] NoClassDefFoundError in spark-examples due to Guava rel…[SPARK-15024] [EXAMPLES] NoClassDefFoundError in spark-examples due to Guava rel…Apr 30, 2016
@atokhyatokhy changed the title [SPARK-15024] [EXAMPLES] NoClassDefFoundError in spark-examples due to Guava rel…[SPARK-15024] NoClassDefFoundError in spark-examples due to Guava rel…Apr 30, 2016
@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@HyukjinKwon

Copy link
Copy Markdown
Member

(It looks the last part of the title is truncated)

@srowen

Copy link
Copy Markdown
Member

This is opened vs 1.6 when it should be master.
@vanzin were we zapping the examples JAR anyway?

@atokhyatokhy changed the title [SPARK-15024] NoClassDefFoundError in spark-examples due to Guava rel…[SPARK-15024] NoClassDefFoundError in spark-examples due to Guava relocationMay 3, 2016
@atokhy

Copy link
Copy Markdown
Author

This is a problem only found in the 1.6 branch (potentially in Spark 1.6.2), and it does not apply to Apache master.

@vanzin

Copy link
Copy Markdown
Contributor

@atokhy that's a little weird. The examples module should be inheriting the guava shading from the parent pom. I have a 1.6 build locally (with patches, so I'll check the official package tomorrow) and HiveFromSpark does not reference unshaded guava classes.

@HyukjinKwon

Copy link
Copy Markdown
Member

Hi @atokhy, it seems inactive without an answer to the comment above. Should this be better closed if you are not able to proceed this further?

@HyukjinKwonHyukjinKwon mentioned this pull request Feb 15, 2017
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
## What changes were proposed in this pull request?
This PR proposes to close stale PRs.
What I mean by "stale" here includes that there are some review comments by reviewers but the author looks inactive without any answer to them more than a month.
I left some comments roughly a week ago to ping and the author looks still inactive in these PR below
These below includes some PR suggested to be closed and a PR against another branch which seems obviously inappropriate.
Given the comments in the last three PRs below, they are probably worth being taken over by anyone who is interested in it.
Closesapache#7963Closesapache#8374Closesapache#11192Closesapache#11374Closesapache#11692Closesapache#12243Closesapache#12583Closesapache#12620Closesapache#12675Closesapache#12697Closesapache#12800Closesapache#13715Closesapache#14266Closesapache#15053Closesapache#15159Closesapache#15209Closesapache#15264Closesapache#15267Closesapache#15871Closesapache#15861Closesapache#16319Closesapache#16324Closesapache#16890Closesapache#12398Closesapache#12933Closesapache#14517
## How was this patch tested?
N/A
Author: hyukjinkwon <gurwls223@gmail.com>
Closesapache#16937 from HyukjinKwon/stale-prs-close.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@atokhy@AmplabJenkins@HyukjinKwon@srowen@vanzin@tokaaron