Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23980

Shade guava from existing Hive versions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.7
    • 2.3.8
    • None
    • Reviewed

    Description

      I'm trying to upgrade Guava version in Spark. The JIRA ticket is SPARK-32502.

      Running test hits an error:

      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)
      

      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.

      Attachments

        Issue Links

          Activity

            People

              viirya L. C. Hsieh
              viirya L. C. Hsieh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h 20m
                  6h 20m