2017-09-21 49 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

相關問題