为非结构化数据创建配置单元表

rggaifut  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(223)

如何为下面的数据创建配置单元表。。??

3.94.78.5 - 69827    [15/Sep/2013:23:58:36 +0100] "GET /KBDOC-00033.html HTTP/1.0"
19.38.140.62 - 21475 [15/Sep/2013:23:58:34 +0100] "GET /KBDOC-00033.html HTTP/1.0"
19.38.140.62 - 21475 [15/Sep/2013:23:58:34 +0100] "GET /KBDOC-00033.html HTTP/1.0"
vhipe2zx

vhipe2zx1#

我已经得到了上述问题的答案,谢谢

create table weblogs4(id String,sal int,time string,gets String)
 ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.RegexSerDe'
 WITH SERDEPROPERTIES ('input.regex'='^(\\S+)\\s+\\S+\\s+(\\S+)\\s+.(\\S+\\s+\\S+).\\s+.(\\S+\\s+\\S+\\s+\\S+).');

相关问题