===========建表后增加分区,数据自动导入
create external table gid_tag_1114
(a1 string ,b1 string,c1 string )
partitioned by (day int)
row format delimited fields terminated by '|'
添加分区
alter table gid_tag_1114 add partition(day=20161112)
location 'hdfs://172.16.11.208/data_result/user/dw_user_app_tag_gid/20161112'
这样表就建好了,不用再用load导入数据了