1
我的JSON文件看起来像:嵌套JSON蜂巢表
{VALUES:[{"UTAGID":"SYSTEM_CHILLER1","tagName":"P1","tagValue":"10","tagTime":"2015-07-23T14:29:30.731Z","tagQuality":"128"}'
...........}]};
我写的JSON模式为:
create table t1(VALUES array<<struct<UTAGID:STRING, tagName:STRING, tagValue:STRING, tagTime:STRING, tagQuality:STRING>>)
ROW FORMAT SERDE "org.apache.hadoop.hive.contrib.serde2.JsonSerde"
STORED AS TEXTFILE;
LOAD DATA LOCAL INPATH"/tmp/jsonstreaming.json"into table t1;
但我仍然得到错误的ParseException的缺失<附近struct关键字。 可能是什么原因?
sorry..i没有在你所提到的,但仍然得到了同样的错误的方式相同类型吧.. – Nal