You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Bitfox <bi...@bitfox.top> on 2022/03/10 01:38:25 UTC

Hive 3 and Java 11 issue

my java version:

openjdk version "11.0.13" 2021-10-19


I can't run hive 3.1.2.

The error include:


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


So I am asking Hive 3 doesn't support java 11 yet?


Thanks.

Re: Hive 3 and Java 11 issue

Posted by Stamatis Zampetakis <za...@gmail.com>.
I confirm what Pau said, the only supported JDK is 8. Upgrade to JDK 11 has
started [1] but was paused due to various problems. I don't know if anyone
is actively working on fixing this at the moment.

Best,
Stamatis

[1] https://issues.apache.org/jira/browse/HIVE-22415

On Thu, Mar 10, 2022 at 10:34 AM Bitfox <bi...@bitfox.top> wrote:

> That sounds bad. All our apps are running on JDK 11.
>
> On Thu, Mar 10, 2022 at 5:06 PM Pau Tallada <ta...@pic.es> wrote:
>
>> I think only JDK8 is supported yet
>>
>> Missatge de Bitfox <bi...@bitfox.top> del dia dj., 10 de març 2022 a
>> les 2:39:
>>
>>> my java version:
>>>
>>> openjdk version "11.0.13" 2021-10-19
>>>
>>>
>>> I can't run hive 3.1.2.
>>>
>>> The error include:
>>>
>>>
>>> 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')
>>>
>>>
>>> So I am asking Hive 3 doesn't support java 11 yet?
>>>
>>>
>>> Thanks.
>>>
>>
>>
>> --
>> ----------------------------------
>> Pau Tallada Crespí
>> Departament de Serveis
>> Port d'Informació Científica (PIC)
>> Tel: +34 93 170 2729
>> ----------------------------------
>>
>>

Re: Hive 3 and Java 11 issue

Posted by Stamatis Zampetakis <za...@gmail.com>.
I confirm what Pau said, the only supported JDK is 8. Upgrade to JDK 11 has
started [1] but was paused due to various problems. I don't know if anyone
is actively working on fixing this at the moment.

Best,
Stamatis

[1] https://issues.apache.org/jira/browse/HIVE-22415

On Thu, Mar 10, 2022 at 10:34 AM Bitfox <bi...@bitfox.top> wrote:

> That sounds bad. All our apps are running on JDK 11.
>
> On Thu, Mar 10, 2022 at 5:06 PM Pau Tallada <ta...@pic.es> wrote:
>
>> I think only JDK8 is supported yet
>>
>> Missatge de Bitfox <bi...@bitfox.top> del dia dj., 10 de març 2022 a
>> les 2:39:
>>
>>> my java version:
>>>
>>> openjdk version "11.0.13" 2021-10-19
>>>
>>>
>>> I can't run hive 3.1.2.
>>>
>>> The error include:
>>>
>>>
>>> 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')
>>>
>>>
>>> So I am asking Hive 3 doesn't support java 11 yet?
>>>
>>>
>>> Thanks.
>>>
>>
>>
>> --
>> ----------------------------------
>> Pau Tallada Crespí
>> Departament de Serveis
>> Port d'Informació Científica (PIC)
>> Tel: +34 93 170 2729
>> ----------------------------------
>>
>>

Re: Hive 3 and Java 11 issue

Posted by Bitfox <bi...@bitfox.top>.
That sounds bad. All our apps are running on JDK 11.

On Thu, Mar 10, 2022 at 5:06 PM Pau Tallada <ta...@pic.es> wrote:

> I think only JDK8 is supported yet
>
> Missatge de Bitfox <bi...@bitfox.top> del dia dj., 10 de març 2022 a les
> 2:39:
>
>> my java version:
>>
>> openjdk version "11.0.13" 2021-10-19
>>
>>
>> I can't run hive 3.1.2.
>>
>> The error include:
>>
>>
>> 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')
>>
>>
>> So I am asking Hive 3 doesn't support java 11 yet?
>>
>>
>> Thanks.
>>
>
>
> --
> ----------------------------------
> Pau Tallada Crespí
> Departament de Serveis
> Port d'Informació Científica (PIC)
> Tel: +34 93 170 2729
> ----------------------------------
>
>

Re: Hive 3 and Java 11 issue

Posted by Pau Tallada <ta...@pic.es>.
I think only JDK8 is supported yet

Missatge de Bitfox <bi...@bitfox.top> del dia dj., 10 de març 2022 a les
2:39:

> my java version:
>
> openjdk version "11.0.13" 2021-10-19
>
>
> I can't run hive 3.1.2.
>
> The error include:
>
>
> 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')
>
>
> So I am asking Hive 3 doesn't support java 11 yet?
>
>
> Thanks.
>


-- 
----------------------------------
Pau Tallada Crespí
Departament de Serveis
Port d'Informació Científica (PIC)
Tel: +34 93 170 2729
----------------------------------