代码改变世界

随笔分类 -  Hadoop/MapReduce

Hive建表实例——定义serdeproperties属性

2013-06-09 23:36 by java20130722, 10383 阅读, 收藏, 编辑
摘要: 创建table时,直接定义serdeproperties属性,create table wzhg( c0 string, c1 string, c2 string )row format serde 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe' with serdeproperties ( 'input.regex' = 'bduid\\[(.*)\\]uid\\[(\\d+)\\]uname\\[(.*)\\]', 'output.format.string' = ' 阅读全文