hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From merp queen <merpqueen...@gmail.com>
Subject java.util.ArrayList cannot be cast to [Ljava.util.ArrayList in hive
Date Wed, 22 Feb 2017 13:41:05 GMT
  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