我正在对hive 13.0进行一些测试。我正在尝试创建一个外部表并使用json jar来读取json格式的数据文件。但是得到错误。以下是我的创建表格陈述
'$response = Invoke-Hive -Query @"
add jar wasb://path/json-serde-1.1.9.2.jar;
add jar wasb://path/json-serde-1.1.9.2-jar-with-dependencies.jar;
CREATE EXTERNAL TABLE IF NOT EXISTS table_name (col1 string, col2 string...coln int)
PARTITIONED BY (year string, month string, day string)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
WITH SERDEPROPERTIES ()
STORED AS TEXTFILE;
"@'
下面是我得到的错误
'FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.org.apache.hadoop.hive.serde2.object inspector.primitive.AbstractPrimitiveJavaObjectInspector.<init>(Lorg/apache/hadoop/hive/serde2/objectinspector/primitive
/ PrimitiveObjectInspectorUtils $ PrimitiveTypeEntry;)V'
有什么建议吗?
答案 0 :(得分:0)
Serde for Hive需要进行一些更改.13 - 您可以在此处看到一个列表:https://github.com/rcongiu/Hive-JSON-Serde/pull/64