You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Chao Sun (Jira)" <ji...@apache.org> on 2020/08/03 16:43:00 UTC
[jira] [Commented] (HIVE-23980) Shade guava from existing Hive
versions
[ https://issues.apache.org/jira/browse/HIVE-23980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17170176#comment-17170176 ]
Chao Sun commented on HIVE-23980:
---------------------------------
[~viirya] have you considered using {{hive-exec-<version>\-core.jar}}? see [here|https://github.com/apache/hive/blob/master/ql/pom.xml#L992]. it has the same content as {{hive-exec-<version>.jar}} but shades many dependencies.
> Shade guava from existing Hive versions
> ---------------------------------------
>
> Key: HIVE-23980
> URL: https://issues.apache.org/jira/browse/HIVE-23980
> Project: Hive
> Issue Type: Bug
> Reporter: L. C. Hsieh
> Priority: Major
>
> I'm trying to upgrade Guava version in Spark. The JIRA ticket is SPARK-32502.
> Running test hits an error:
> {code}
> sbt.ForkMain$ForkError: sbt.ForkMain$ForkError: java.lang.IllegalAccessError: tried to access method com.google.common.collect.Iterators.emptyIterator()Lcom/google/common/collect/UnmodifiableIterator; from class org.apache.hadoop.hive.ql.exec.FetchOperator
> at org.apache.hadoop.hive.ql.exec.FetchOperator.<init>(FetchOperator.java:108)
> at org.apache.hadoop.hive.ql.exec.FetchTask.initialize(FetchTask.java:87)
> at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:541)
> at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1317)
> at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1457)
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1237)
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1227)
> {code}
> I know that hive-exec doesn't shade Guava until HIVE-22126 but that work targets 4.0.0. I'm wondering if there is a solution for current Hive versions, e.g. Hive 2.3.7? Any ideas?
> Thanks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)