create external table if not exists database.table1
(
column1 string comment 'comment1',
column2 string comment 'comment2'
)
row format delimited fields terminated by \t
stored as inputformat com.hadoop.mapred.deprecatedlzotextinputformat outputformat org.apache.hadoop.hive.ql.io.hiveignorekeytextoutputformat
location 'hdfs:///data/dw/asf/20120201';
标红部分是十分操蛋的,网上几乎所有涉及该单词的文章基本全是复制粘贴抄的,,无一例外,全部写成sorted,如果你找的hive中文资料不是我这篇,恐怕创建外部表都会报错。
