title: Is hive supported for Java 9?
body: <p>Whenever I try to load hive shell, it shows this error: </p>
  
  <pre><code>Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader
      at org.apache.hadoop.hive.ql.session.SessionState.&lt;init&gt;(SessionState.java:394)
      at org.apache.hadoop.hive.ql.session.SessionState.&lt;init&gt;(SessionState.java:370)
      at org.apache.hadoop.hive.cli.CliSessionState.&lt;init&gt;(CliSessionState.java:60)
      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:708)
      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)
      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:543)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
  </code></pre>
  
  <p>I have java 9 and hadoop 2.7.3.</p>
  
  <p>How can I overcome this error?<br>
  Any help will be appreciated.</p>