此方法是在hive表有分区的情况下:
以将reduce个数设为1
set mapred.reduce.tasks=1;
set hive.exec.dynamic.partition.mode=nonstrict;
SET hive.exec.max.dynamic.partitions=100000;
SET hive.exec.max.dynamic.partitions.pernode=100000;
insert overwrite table temp.dtemp_online_recruit partition(dt)
select * from temp.dtemp_online_recruit