failed while select and desc json hive table

时间:2018-05-14 17:34:09

标签: json hadoop hive

I have created a JSON hive table , the table is successfully created , but when I run desc table , ot select * from table, I have been getting the below error. Can someone please help.

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Error: > expected at the end of 'struct

1 个答案:

答案 0 :(得分:0)

当您的表定义超过hive Metastore中定义的最大字符数时会发生这种情况,因此hive会截断您的定义。要解决此问题,您需要根据hive版本增加表TYPE_NAMESCOLUMNS中列COLUMNS_V2的varchar max值。