1.修复表分区命令

msck repair table table_name;

2.添加表分区操作

alter table table_name add partition(month_id='201805',day_id='20180509') location '/user/tuoming/part/201805/20180509';

3.删除表分区

ALTER TABLE table_name  DROP IF EXISTS PARTITION (day_id='20180509');

05-11 23:00