2017-09-21 48 views
0

喜用SERDE的我是初学者蜂房,我发现下面的示例代码中的一个,可以有人帮助我理解下面的代码:是什么HIVE

CREATE EXTERNAL TABLE emp (
    id bigint, 
name string, 
dept bigint, 
    salary bigint) 
partitioned by (yearofjoining string) 
     ROW FORMAT SERDE 
      'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' 
     WITH SERDEPROPERTIES ( 
      'field.delim'='|', 
      'serialization.format'='|') 
     STORED AS INPUTFORMAT 
      'org.apache.hadoop.mapred.TextInputFormat' 
     OUTPUTFORMAT 
      'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' 
     LOCATION 
      's3n://xxx/xxxx/xxx/xxx/xx' 
+0

的可能的复制[?如何配置单元存储数据,什么是SERDE(https://stackoverflow.com/questions/14605640/how -does蜂箱 - 存储数据和 - 什么 - 是 - SERDE) – 54l3d

回答

0

SerDe是串行器/解串器的缩写。 SerDe允许Hive从表中读取数据,并以任何自定义格式将其写回HDFS。任何人都可以为自己的数据格式编写自己的SerDe。

的详细信息,请通过这个链接:

https://cwiki.apache.org/confluence/display/Hive/SerDe

相关问题