hive導表語句

show   create   table ottvtest.tb_mr_outsample_low_dd;

結果:

CREATE TABLE `ottvtest.tb_mr_outsample_low_dd`(
  `cityid` smallint, 
  `time` int, 
  `wtimems` smallint, 
  `eci` int, 
  `buildingid` int, 
  `height` tinyint, 
……………………
  `radius` tinyint, 
  `label` string)
PARTITIONED BY ( 
  `loc_time` string)
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' 
WITH SERDEPROPERTIES ( 
  'field.delim'='\t', 
  'serialization.format'='\t') 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.mapred.TextInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
  'hdfs://nameservice1/user/hive/warehouse/ottvtest.db/tb_mr_outsample_low_dd'
  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章