我正在尝试下面的查询来将数据从pig加载到hive:
data.txt中 1,2.0,3.0,4.0
r = load '/hdfs path/data.txt' using PigStorage(',') as (a:chararray,b:float,c:float,d:float);
store r into 'db.table_name' using org.apache.hive.hcatalog.pig.HCatStorer();
hive表的架构: (字符串,b浮点数,c浮点数,d浮点数)
以上猪查询丢失错误:
2016-07-01 08:43:35,908 [main] ERROR org.apache.pig.tools.pigstats.PigStats - ERROR 0:java.lang.ClassCastException:org.apache.pig.data.DataByteArray无法强制转换到java.lang.Integer 2016-07-01 08:43:35,909 [main] ERROR strong textorg.apache.pig.tools.pigstats.mapreduce.MRPigStatsUtil - 1 map reduce job(s)failed!