[ https://issues.apache.org/jira/browse/HIVE-21237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933697#comment-16933697 ]
Dawood commented on HIVE-21237: ------------------------------- Thanks [~yumwang] verified with Hive 2.3.6 Hadoop 3.2.0 jdk-11.0.4, Issue is not reproduced. {noformat} [root@hive bin]# $HIVE_HOME/bin/hive which: no hbase in (/opt/apache-hive-2.3.6-bin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/java/jdk-11.0.4/bin:/usr/java/jdk-11.0.4/bin:/opt/hadoop-3.2.0/sbin:/opt/hadoop-3.2.0/bin:/usr/java/jdk-11.0.4/bin:/opt/hadoop-3.2.0/sbin:/opt/hadoop-3.2.0/bin) SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/apache-hive-2.3.6-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/opt/hadoop-3.2.0/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]Logging initialized using configuration in jar:file:/opt/apache-hive-2.3.6-bin/lib/hive-common-2.3.6.jar!/hive-log4j2.properties Async: true WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.hadoop.hive.common.StringInternUtils (file:/opt/apache-hive-2.3.6-bin/lib/hive-common-2.3.6.jar) to field java.net.URI.string WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.hive.common.StringInternUtils WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases. hive> {noformat} > [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)