hive-动态分区

迁移脚本初始化时需要将以前的历史数据分区也迁移过来,就可以用到动态分区了
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.dynamic.partition=true;
set hive.exec.max.dynamic.partitions.pernode=100000;
set hive.exec.max.dynamic.partitions=100000;
 
insert overwrite table sda.sda02_lplog_flat partition (etl_tx_dt)
select
*
from dev_iqj_dw_dev.sda02_lp_log
where etl_tx_dt <= 20190315

猜你喜欢

转载自www.cnblogs.com/dcx-1993/p/10615353.html