[ 
https://issues.apache.org/jira/browse/HIVE-28360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

lvyankui updated HIVE-28360:
----------------------------
    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.

 

After upgrading to Hadoop 3.3.5+, Hadoop updates jersey to version 
{color:#ff0000}1.19.4{color}, 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.

 

javax.servlet.ServletException: 
com.sun.jersey.spi.container.servlet.ServletContainer-6e57e95e==com.sun.jersey.spi.container.servlet.ServletContainer@9f645b7f\{jsp=null,order=-1,inst=true,async=true,src=EMBEDDED:null,STARTED}
        at 
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:650) 
~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:415) 
~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) 
~[?:1.8.0_412]
        at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:483) 
~[?:1.8.0_412]
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) 
~[?:1.8.0_412]
        at 
java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:313)
 ~[?:1.8.0_412]
        at 
java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743) 
~[?:1.8.0_412]
        at 
java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) 
~[?:1.8.0_412]
        at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774) 
~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at org.eclipse.jetty.server.Server.start(Server.java:423) 
~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at org.eclipse.jetty.server.Server.doStart(Server.java:387) 
~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at 
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
 ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
        at org.apache.hive.hcatalog.templeton.Main.runServer(Main.java:235) 
~[hive-webhcat-3.1.3.jar:3.1.3]
        at org.apache.hive.hcatalog.templeton.Main.run(Main.java:134) 
[hive-webhcat-3.1.3.jar:3.1.3]
        at org.apache.hive.hcatalog.templeton.Main.main(Main.java:345) 
[hive-webhcat-3.1.3.jar:3.1.3]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_412]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_412]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_412]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_412]
        at org.apache.hadoop.util.RunJar.run(RunJar.java:328) 
[hadoop-common-3.3.6.jar:?]
        at org.apache.hadoop.util.RunJar.main(RunJar.java:241) 
[hadoop-common-3.3.6.jar:?]

 

  was:
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.

 

After upgrading to Hadoop 3.3.5+, Hadoop updates jersey to version 
{color:#ff0000}1.19.4{color}, 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.

 


> Upgrade jersey to version 1.19.4,
> ---------------------------------
>
>                 Key: HIVE-28360
>                 URL: https://issues.apache.org/jira/browse/HIVE-28360
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 3.1.3
>            Reporter: lvyankui
>            Assignee: lvyankui
>            Priority: Major
>         Attachments: HIVE-28360.patch
>
>
> 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.
>  
> After upgrading to Hadoop 3.3.5+, Hadoop updates jersey to version 
> {color:#ff0000}1.19.4{color}, 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.
>  
> javax.servlet.ServletException: 
> com.sun.jersey.spi.container.servlet.ServletContainer-6e57e95e==com.sun.jersey.spi.container.servlet.ServletContainer@9f645b7f\{jsp=null,order=-1,inst=true,async=true,src=EMBEDDED:null,STARTED}
>         at 
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:650) 
> ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:415) 
> ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) 
> ~[?:1.8.0_412]
>         at 
> java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:483) 
> ~[?:1.8.0_412]
>         at 
> java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) 
> ~[?:1.8.0_412]
>         at 
> java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:313)
>  ~[?:1.8.0_412]
>         at 
> java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743) 
> ~[?:1.8.0_412]
>         at 
> java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647) 
> ~[?:1.8.0_412]
>         at 
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:774) 
> ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:916)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at org.eclipse.jetty.server.Server.start(Server.java:423) 
> ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at org.eclipse.jetty.server.Server.doStart(Server.java:387) 
> ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at 
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
>  ~[jetty-runner-9.4.53.v20231009.jar:9.4.53.v20231009]
>         at org.apache.hive.hcatalog.templeton.Main.runServer(Main.java:235) 
> ~[hive-webhcat-3.1.3.jar:3.1.3]
>         at org.apache.hive.hcatalog.templeton.Main.run(Main.java:134) 
> [hive-webhcat-3.1.3.jar:3.1.3]
>         at org.apache.hive.hcatalog.templeton.Main.main(Main.java:345) 
> [hive-webhcat-3.1.3.jar:3.1.3]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_412]
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_412]
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_412]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_412]
>         at org.apache.hadoop.util.RunJar.run(RunJar.java:328) 
> [hadoop-common-3.3.6.jar:?]
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:241) 
> [hadoop-common-3.3.6.jar:?]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to