regex - hive - mismatched input ''output.format.string'' expecting ) -
i trying create hive table hive.log (from /tmp//hive.log).
sample line log:
2015-06-14 06:01:40,206 info [main]: ql.driver (driver.java:compile(433)) - semantic analysis completed
here create query , regex in it:
create external table hivelog_temp(date string,time string,log_level string,file string,func string,sub_func string,log_msg string) row format serde 'org.apache.hadoop.hive.contrib.serde2.regexserde' serdeproperties( 'input.regex' = '([^\ ]*) ([^\ ]*) ([^\ ]*) \[([^\ ]*)\]: ([^\ ]*) \(([^\ ]*)\(.*\) - (.*)\n' 'output.format.string' = "%1$s %2$s %3$s %4$s %5$s %6$s %7$s" ) location '/user/hive/warehouse/hive.log';
i getting following error:
failed: parseexception line 5:0 mismatched input ''output.format.string'' expecting ) near ''([^\ ]) ([^\ ]) ([^\ ]) [([^\ ])]: ([^\ ]) (([^\ ])(.) - (.)\n'' in table properties
tried other options also, got same error always. couldn't figure out problem. help?
Comments
Post a Comment