2017-01-15 36 views
0

在没有rowformat分隔选项的配置单元中创建表。 现在需要添加HIve Alter commnad更改rowformat

rowformat delimited fileds terminated by ';' records terminated by '\n' 

如何做到这一点,请大家帮帮忙,谢谢。

回答

0

Hive将默认的LazySimpleSerDe作为Serde Library分配给未使用一个创建的表。通过将SERDE属性,它改变了蜂巢表,

ALTER table TBLNAME set SERDEPROPERTIES('field.delim' = ','); 

默认情况下,该行是换行分隔。