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

Upgrade jersey to version 1.19.4,

    XMLWordPrintableJSON

Details

    Description

      Hive version: 3.1.3
      Hadoop version: 3.3.6

      After upgrading to Hadoop 3.3.6, 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.

       

      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.

       

      Here is the error log 

      INFO  | 18 Jul 2024 14:37:13,237 | org.eclipse.jetty.server.Server | jetty-9.4.53.v20231009; built: 2023-10-09T12:29:09.265Z; git: 27bde00a0b95a1d5bbee0eae7984f891d2d0f8c9; jvm 1.8.0_412-b08
      WARN  | 18 Jul 2024 14:37:13,326 | org.eclipse.jetty.server.handler.ContextHandler.ROOT | unavailable
      com.sun.jersey.api.container.ContainerException: No WebApplication provider is present
              at com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:69) ~[jersey-server-1.19.4.jar:1.19.4]
              at com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:412) ~[jersey-servlet-1.19.jar:1.19]
              at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:327) ~[jersey-servlet-1.19.jar:1.19]
              at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:603) ~[jersey-servlet-1.19.jar:1.19]
              at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:207) ~[jersey-servlet-1.19.jar:1.19]
              at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:394) ~[jersey-servlet-1.19.jar:1.19]
              at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:577) ~[jersey-servlet-1.19.jar:1.19]
              at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[javax.servlet-api-3.1.0.jar:3.1.0]

       

       

       

      Attachments

        1. HIVE-28360.patch
          0.7 kB
          lvyankui

        Issue Links

          Activity

            People

              lvyankui lvyankui
              lvyankui lvyankui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: