我在这里非常新,我正在尝试在我的cloudera快速启动vm上运行以下代码。
CREATE TABLE apache_common_log (
host STRING,
identity STRING,
user STRING,
time STRING,
request STRING,
status STRING,
size STRING
)
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'
WITH SERDEPROPERTIES (
"input.regex" = "([^ ]) ([^ ]) ([^ ]) (-|\^\\]) ([^ "]*|" [^\"]*\") (-|[0-9]*) (-|[0-9]*)",
"output.format.string" = "%1$s %2$s %3$s %4$s %5$s %6$s %7$s" ) STORED AS TEXTFILE;
但我有个错误:
failed: execution error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask, Cannot validate serde: org.apache.hadoop.hive.serde2.RegexSerde
我做了一些研究,所有的字段都是字符串,我已经添加了jar /usr/lib/hive/lib/hive-contrib.jar
/usr/lib/hive/lib/hive-serde.jar /usr/lib/hive/lib/hive-common.jar
还是没用。真的需要帮助!任何意见都将不胜感激!!!
暂无答案!
目前还没有任何答案,快来回答吧!