Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22611 Use JDK Base64 Classes
  3. HIVE-20784

Migrate hbase.util.Base64 to java.util.Base64

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 3.1.0
    • None
    • HBase Handler
    • HBase 2.0.2

      Hive 3.1.0

    Description

      By default Hive 3.1.0 depends on HBase 2.0.0-alpha4. HBase 2.0.2 migrated from hbase.util.Base64 to java.util.Base64 (HBASE-20884), which causes Hive 3.1.0 fails to build with HBase 2.0.2.

       

      $ cd hbase-handler

      $ mvn package -DskipTests -Dhbase.version=2.0.2

      [ERROR] .../hive/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHBaseTableSnapshotInputFormat.java:[29,36] cannot find symbol
      [ERROR] symbol: class Base64
      [ERROR] location: package org.apache.hadoop.hbase.util 

       

      To make Hive works with 2.0.2+ (and also older versions), we should consider migrating Hive to java.util.Base64.

      Attachments

        Issue Links

          Activity

            People

              functicons Dagang Wei
              functicons Dagang Wei
              Votes:
              1 Vote for this issue
              Watchers:
              4 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 - 1h 50m
                  1h 50m