首页 > 数据库技术 > 详细

Hive格式化输出数据库和表详细信息

时间:2015-07-12 21:30:01      阅读:477      评论:0      收藏:0      [点我收藏+]

hive> desc database extended wx_test;
OK
wx_test  hdfs://ns1/user/hive/warehouse/wx_test.db hadoop USER {t_date=2015-06-21, creator=wx}
Time taken: 0.027 seconds, Fetched: 1 row(s)

 

 

hive> desc formatted page_view;
OK
# col_name             data_type            comment            
   
viewtime             int                                     
userid               bigint                                  
page_url             string                                  
referrer_url         string                                  
ip                   string               IP Address of the User
   
# Partition Information   
# col_name             data_type            comment            
   
dt                   string                                  
country              string                                  
   
# Detailed Table Information   
Database:            wx_test              
Owner:               hadoop               
CreateTime:          Sun Jul 12 20:03:18 CST 2015 
LastAccessTime:      UNKNOWN              
Protect Mode:        None                 
Retention:           0                    
Location:            hdfs://ns1/user/hive/warehouse/wx_test.db/page_view 
Table Type:          MANAGED_TABLE        
Table Parameters:   
 comment              This is the page view table
 creator              wx                 
 t_date               2015-06-21         
 transient_lastDdlTime 1436702598         
   
# Storage Information   
SerDe Library:       org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe 
InputFormat:         org.apache.hadoop.mapred.SequenceFileInputFormat 
OutputFormat:        org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat 
Compressed:          No                   
Num Buckets:         -1                   
Bucket Columns:      []                   
Sort Columns:        []                   
Storage Desc Params:   
 serialization.format 1                  
Time taken: 0.089 seconds, Fetched: 39 row(s)

 

Hive格式化输出数据库和表详细信息

原文:http://www.cnblogs.com/wwxbi/p/4641451.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!