Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-3966

Make hive 3.1.3 compatible with hadoop 3.3.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.1, 3.3.0
    • None
    • None

    Description

      Hive version: 3.1.3
      Hadoop version: 3.3.5

      After upgrading to Hadoop 3.3.5, the Hive WebHCat server fails to start because of inconsistent versions of the Jersey JAR package. Hive HCat lacks the jersey-server-1.19 jar.

      The issue is as follows: The startup script of the Hive WebHCat server sets the Hadoop class path. It first loads from its own class path, and if not found, it looks for it in the Hadoop class path. 
      /usr/lib/hive-hcatalog/sbin/webhcat_server.sh

       

      In Hadoop 3.3.4, the version of the Jersey-related JARs in Hadoop is 1.19, which matches that of Hive. Therefore, even though the Hive WebHCat server does not contain jersey-server-1.19.jar, it successfully loads jersey-server-1.19.jar from the Hadoop class path, and no error occurs.

      However, after upgrading to Hadoop 3.3.5, Hadoop updates jersey to version 1.19.4, which is inconsistent with the jersey version in the Hive WebHCat server. As a result, the startup fails. To resolve this, manually download a package and place it in /usr/lib/hive-hcatalog/share/webhcat/svr/lib/

      Therefore, when packaging Hive, we need to specify the version of Jersey in the Hive POM file to match the version of Jersey in Hadoop  to avoid version conflicts.

      Attachments

        1. image-2023-07-28-09-51-02-875.png
          496 kB
          Jialiang Cai
        2. image-2023-07-27-14-46-41-989.png
          1.53 MB
          Jialiang Cai
        3. image-2023-07-27-14-45-33-894.png
          23 kB
          Jialiang Cai
        4. image-2023-07-27-14-45-11-157.png
          84 kB
          Jialiang Cai

        Activity

          People

            jialiang Jialiang Cai
            jialiang Jialiang Cai
            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 - 0.5h
                0.5h