Uh oh!
There was an error while loading. Please reload this page.
[SPARK-6153] [SQL] promote guava dep for hive-thriftserver - #4884
[SPARK-6153] [SQL] promote guava dep for hive-thriftserver#4884adrian-wang wants to merge 2 commits into
Conversation
SparkQA
commented
Mar 4, 2015
Test build #28251 has started for PR 4884 at commit
|
SparkQA
commented
Mar 4, 2015
Test build #28251 has finished for PR 4884 at commit
|
AmplabJenkins
commented
Mar 4, 2015
Test PASSed. |
srowen
commented
Mar 4, 2015
I don't see any usages of Guava in these modules. Why would they need a compile time dependency? |
liancheng
commented
Mar 4, 2015
I have the same question as @srowen. Is it related to the binary incompatiblity issue Guava 15/17 introduced? (Probably no?) |
adrian-wang
commented
Mar 4, 2015
@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! |
srowen
commented
Mar 4, 2015
There can't be a need to add a |
adrian-wang
commented
Mar 5, 2015
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. |
adrian-wang
commented
Mar 5, 2015
BTW, I am using Intellij community version 14.0.3 on Ubuntu 12.04. |
liancheng
commented
Mar 5, 2015
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). |
adrian-wang
commented
Mar 5, 2015
Yes, I cleaned idea cache and the compilation error is gone. |
SparkQA
commented
Mar 5, 2015
Test build #28280 has started for PR 4884 at commit
|
liancheng
commented
Mar 5, 2015
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. |
liancheng
commented
Mar 5, 2015
@adrian-wang Please also fix the PR description, thanks! |
liancheng
commented
Mar 5, 2015
Also, I think this PR is not about deploy? |
adrian-wang
commented
Mar 5, 2015
updated, thanks! |
SparkQA
commented
Mar 5, 2015
Test build #28280 has finished for PR 4884 at commit
|
AmplabJenkins
commented
Mar 5, 2015
Test PASSed. |
For package thriftserver, guava is used at runtime. /cc pwendell Author: Daoyuan Wang <daoyuan.wang@intel.com> 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 <lian@databricks.com>
liancheng
commented
Mar 5, 2015
RC2 had already been cut, so merged into master and branch-1.3. Thanks for working on this! |
srowen
commented
Mar 5, 2015
Hm, I would have liked @vanzin to review this first. We handle Guava quite specially with the strange |
liancheng
commented
Mar 5, 2015
@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! |
liancheng
commented
Mar 5, 2015
Reverted this on branch-1.3. |
vanzin
commented
Mar 5, 2015
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. |
liancheng
commented
Mar 6, 2015
Thanks @vanzin, I'll double check with |
For package thriftserver, guava is used at runtime.
/cc @pwendell