zoukankan      html  css  js  c++  java
  • Hive格式化输出数据库和表详细信息

    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)
    
    
  • 相关阅读:
    Neo4j电影关系图Cypher
    Neo4j电影关系图
    Neo4j配置文件neo4j.conf
    SpringBoot实现多数据源(实战源码)
    Maven添加Oracle驱动及依赖
    HttpClient发送Json数据到指定接口
    java手动分页处理
    设计模式之模板方法模式
    JDBC插入性能优化对比
    Oracle数据库常用监控语句
  • 原文地址:https://www.cnblogs.com/wwxbi/p/4641451.html
Copyright © 2011-2022 走看看