Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17632 Build Hive with JDK9
  3. HIVE-21237

[JDK 11] SessionState can't be initialized due to classloader problem

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.1.1
    • None
    • None
    • None
    • JDK11, Hadoop-3, Hive 3.1.1

    Description

      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)}}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              umamaheswararao Uma Maheswara Rao G
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: