-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6153] [SQL] promote guava dep for hive-thriftserver #4884
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
|
Test build #28251 has started for PR 4884 at commit
|
|
Test build #28251 has finished for PR 4884 at commit
|
|
Test PASSed. |
|
I don't see any usages of Guava in these modules. Why would they need a compile time dependency? |
|
I have the same question as @srowen. Is it related to the binary incompatiblity issue Guava 15/17 introduced? (Probably no?) |
|
@srowen @liancheng You can reproduce my problem by
About the usage of guava in module hive, check https://github.com/apache/spark/blob/master/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala#L23 The usage of guava in thriftserver is called by a dependency of module thriftserver. This should be ok, but the root pom specifically mark guava as scope provided. This would not lead to a real problem, but only affect what maven plugin of intellij does. Thanks for your review! |
|
There can't be a need to add a |
|
I had a small talk with @liancheng , and Guava for module hive with level 'provided' works for him when trying to reproduce my issue, while it doesn't work for me. /cc @srowen , set guava to runtime level for hive module still doesn't work for me. |
|
BTW, I am using Intellij community version 14.0.3 on Ubuntu 12.04. |
|
I suspect this is more like a local dev environment configuration issue. Though @srowen' suggestion makes sense. While trying to run the CLI within IDEA, I didn't encounter compilation error, but did encounter runtime error (Guava classes not found). |
|
Yes, I cleaned idea cache and the compilation error is gone. |
|
Test build #28280 has started for PR 4884 at commit
|
|
Now this LGTM. However, I believe @pwendell is cutting RC2, and this issue is IDEA specific, so I'm not going to merge this to branch-1.3 right now. Let's wait for Jenkins first. |
|
@adrian-wang Please also fix the PR description, thanks! |
|
Also, I think this PR is not about deploy? |
|
updated, thanks! |
|
Test build #28280 has finished for PR 4884 at commit
|
|
Test PASSed. |
For package thriftserver, guava is used at runtime. /cc pwendell Author: Daoyuan Wang <[email protected]> Closes #4884 from adrian-wang/test and squashes the following commits: 4600ae7 [Daoyuan Wang] only promote for thriftserver 44dda18 [Daoyuan Wang] promote guava dep for hive (cherry picked from commit e06c7df) Signed-off-by: Cheng Lian <[email protected]>
|
RC2 had already been cut, so merged into master and branch-1.3. Thanks for working on this! |
|
Hm, I would have liked @vanzin to review this first. We handle Guava quite specially with the strange |
|
@srowen I have been fighting with compatibilities issues related to Guava 15.0 and 17.0 for a few days recently (#4872 & #4890). To the best of my knowledge, this change should be safe. But I have to admit this is a pretty nasty and complex issue that worth double or even triple checking. I'm going to revert this on branch-1.3 for safe. (My first reverting operation, crossing fingers...) @vanzin It would be great if you can have a close look at this issue. Thanks! |
|
Reverted this on branch-1.3. |
|
I really can't comment much just based on the change... when conflicts like this happen, it's always useful to have the output of "mvn dependency:tree -Dverbose" for the affected module. With that we can figure out exactly what version with what scope is coming from where, and we have better info to come up with the appropriate fix. |
|
Thanks @vanzin, I'll double check with |
For package thriftserver, guava is used at runtime.
/cc @pwendell