HADOOP-HIVE表-标准建表语句语句 - 学习笔记(5)

HIVE表-标准建表语句解析,内/外表 

REF: https://edu.hellobi.com/course/93/play/lesson/2035

 

hive> create external table test(id int);
OK
Time taken: 12.057 seconds
hive> desc formatted test
    > ;
OK
# col_name                data_type               comment             
          
id                      int                                         
          
# Detailed Table Information          
Database:               default                  
Owner:                  root                     
CreateTime:             Sun May 17 16:09:46 GMT+08:00 2020     
LastAccessTime:         UNKNOWN                  
Retention:              0                        
Location:               hdfs://bigdata:9000/user/hive/warehouse/test     
Table Type:             EXTERNAL_TABLE           

HIVE文件及数据格式

REF:https://edu.hellobi.com/course/93/play/lesson/2036

 SerDe 序列化和反序列化

序列化: 

1)持久化,

2)网络传输

CSV/TSV 行中行 需要特殊处理,cast等。

猜你喜欢

转载自www.cnblogs.com/watermarks/p/12902027.html
今日推荐