-
Notifications
You must be signed in to change notification settings - Fork 12
Unable to start Hive 3 with java 11 #59
Comments
Hi @morazow
then I restarted the metastore. But the Hive CLI still return the same exception that mentioned above. |
Hello @Sarrouna, If it is your own sandbox, you can easily change the Java versions. I think Apache Hive still uses Java 8. Please check first if the other java versions are installed:
Otherwise, you can install java 8 with following commands on linux systems:
And then use the above The issue is usually occurs when Hive libraries that are compiled with Java 8 run in Java 9+ environments. It is no longer possible to cast the ClassLoader to URLClassLoader, it is one of the breaking changes from Java 8 to Java 9+. |
Hi @morazow Thanks for helping. In fact, yes I was thinking on that but, first we don't have a right to change between java versions, and second, I project to use Hive 3 with Trino (it's a fork of Prestodb). And Trino recommand to use Java 11+. It's don't support earlier java 11 versions. |
Hey @Sarrouna, That is too bad. Yes. I checked the source files. I think you are using Hive 3.1 version. Here on the pom file on the 3.1 branch it is still build with Java 8. The error you are seeing can also be found on the source files: That line expected to fail on the Java 9+ versions. |
That's great. It mentioned clearly that Hive 3 still using java 8. Thanks a lot @morazow for your answers. |
Hey @Sarrouna, Thanks for the feedback! Would it be okay to close this ticket? All the best |
so many problems install hive |
How to resolve this? |
You mean that uninstall java version 11 and install 8 in simple! |
I installed Apache Hive 3 and Apache hadoop 3 in my system that contain Java 11. I initialized the database and launched the metastore successfully on port[9083]
I had some exceptions that blocked the start of the metastore but I resolved them. When I start hive CLI I git the following exception:
I had a look in the forums and as my understanding that Hive 3 not support java 11. But, I didn't find a confirmed information from Hive.
Please someone have an information about the exception above how to resolve it in Hive 3 with java 11 ?
@morazow I saw that you post the same issue in 2019, do you have please an idea about this issue because I'm facing it in 2021 :) Do you know please if Hadoop and Hive dependencies are still using Java 8 ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: