侧边栏壁纸
博主头像
AllInOne博主等级

随风来,随风去

  • 累计撰写 45 篇文章
  • 累计创建 27 个标签
  • 累计收到 2 条评论

目 录CONTENT

文章目录

Hive处理小文件问题(实战篇)

AllInOne
2024-05-28 / 0 评论 / 0 点赞 / 123 阅读 / 91 字
温馨提示:
点赞-关注-不迷路。
set hive.exec.dynamic.partition=true;
set hive.exec.dynamic.partition.mode=nonstrict;
#限制单个MapReduce任务可产生的动态分区数量,防止资源过载。
set hive.exec.max.dynamic.partitions.pernode=100000;
set hive.exec.max.dynamic.partitions.pernode.Maximum=100000;
set hive.exec.max.dynamic.partitions=100000;
set hive.exec.max.created.files=100000;
insert overwrite table db.tablename partition (pic_type, platform)
select aa
, bb
, pic_type
, platform
from tablename
distribute by pic_type, platform;
0

评论区