-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-12736][CORE][DEPLOY] Standalone Master cannot be started due t… #10674
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
Conversation
…o NoClassDefFoundError: org/spark-project/guava/collect/Maps
|
I'm not sure about that; I believe Guava is supposed to be |
|
Yes, it does. I'm using the latest revision + the change. It's a serious issue since standalone Master cannot be started as of today. I do not know how it's supposed to have been fixed, but that's exactly what helped to resolve the issue. Any help appreciated to make it better. |
|
Yeah I think this is correct. The comment that was here previously suggested this was related to use of |
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.
Isn't compile the default scope? i.e. couldn't you leave out the explicit compile scope here and just not specify a scope?
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.
Thought so, but the line has fixed standalone Master to start (after the line got removed in 659fd9d).
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.
Isn't compile the default scope? i.e. couldn't you leave out the explicit compile scope here and just not specify a scope?
It's set to provided in the parent pom.xml:
Line 365 in b23c452
| <groupId>com.google.guava</groupId> |
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.
Ah, gotcha; (this is why I shouldn't review before morning coffee).
|
Jenkins, this is ok to test. |
|
@jaceklaskowski, to help me understand the scope of this bug could you tell us how you built Spark in your failing example? Did you use the Maven or SBT builds? Which build profiles? I'm wondering because there it looks like there are some differences between how the two build tools handle the Guava dependency. Specifically, it looks like SBT always puts Guava in compile scope: Line 2302 in 3d77cff
|
|
I'm using the following commands to do the build: (I've been using sbt but somehow it got "broken" lately, i.e. it doesn't build all modules - I'm going to report it later). |
|
Test build #49047 has finished for PR 10674 at commit
|
|
I'm going to merge this to fix the issue; @vanzin maybe you can swoop in and double-check what I did here to make sure the |
|
The fix is correct; that shouldn't have been removed in the first place (sorry I missed that). The change in that pom is so that the files actually get packaged somewhere. Otherwise the shade plugin just changes references in existing classes, but no jar would actually include the shaded classes. BTW it would be nice to restore the original comment that explained that too. |
|
Yeah the original comment was helpful, though it also kind of led me to believe the setting was connected to the class existing in the public API. That bit would have to be changed. |
…o NoClassDefFoundError: org/spark-project/guava/collect/Maps
/cc @srowen @rxin