hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuming Wang (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21237) [JDK 11] SessionState can't be initialized due to classloader problem
Date Fri, 20 Sep 2019 02:08:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-21237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933939#comment-16933939
] 

Yuming Wang commented on HIVE-21237:
------------------------------------

Yes. Hive 3.x has another issue HIVE-22097 that can't run on JDK 11.

> [JDK 11] SessionState can't be initialized due to classloader problem
> ---------------------------------------------------------------------
>
>                 Key: HIVE-21237
>                 URL: https://issues.apache.org/jira/browse/HIVE-21237
>             Project: Hive
>          Issue Type: Sub-task
>    Affects Versions: 3.1.1
>         Environment: JDK11, Hadoop-3, Hive 3.1.1
>            Reporter: Uma Maheswara Rao G
>            Priority: Major
>
> When I start Hive with JDK11
> {{2019-02-08 22:29:51,500 INFO SessionState: Hive Session ID = cecd9c34-d61a-44d0-9e52-a0a7d6413e49
> Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader
cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader
and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
>         at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:410)
>         at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:386)
>         at org.apache.hadoop.hive.cli.CliSessionState.<init>(CliSessionState.java:60)
>         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:705)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683)
>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>         at org.apache.hadoop.util.RunJar.run(RunJar.java:323)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:236)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message