hadoop - Nested json to Hive table -


my json file looks like:

{values:[{"utagid":"system_chiller1","tagname":"p1","tagvalue":"10","tagtime":"2015-07-23t14:29:30.731z","tagquality":"128"}' ...........}]}; 

i wrote json schema as:

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 textfile;  load data local inpath"/tmp/jsonstreaming.json"into table t1; 

but i'm still getting error parseexception missing < near struct keyword. reason?

i think have < try

create table t1(values array<struct<utagid:string, tagname:string, tagvalue:string, tagtime:string, tagquality:string>>) 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -