hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: java.util.ArrayList cannot be cast to [Ljava.util.ArrayList in hive
Date Wed, 22 Feb 2017 16:42:22 GMT
This question should be for Hive mailing list.

The exception message is quite clear: you're casting to ArrayList[]

On Wed, Feb 22, 2017 at 5:41 AM, merp queen <merpqueen123@gmail.com> wrote:

>   Object values[] = (Object[])str.getValue();  // Target values
>
> I changed above line to below and its giving this error
>
>  ArrayList<Object> values[] = (ArrayList<Object>[])str.getValue();
>
>
> Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException:
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to
> [Ljava.util.ArrayList;
>
>

Mime
View raw message