当对hive分区未做设置时,报错如下:

Caused by: org.apache.hadoop.hive.ql.metadata.HiveFatalException: [Error 20004]: Fatal error occurred when node tried to create too many dynamic partitions. The maximum number of dynamic partitions is controlled by hive.exec.max.dynamic.partitions and hive.exec.max.dynamic.partitions.pernode. Maximum was set to: 5000
at org.apache.hadoop.hive.ql.exec.FileSinkOperator.getDynOutPaths(FileSinkOperator.java:877)
at org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp(FileSinkOperator.java:657)
at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:815)
at org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
at org.apache.hadoop.hive.ql.exec.mr.ExecReducer.reduce(ExecReducer.java:244)
... 7 more

超过了最大的分区数设置

解决办法:

set hive.exec.dynamic.partition=true;

set hive.exec.dynamic.partition.mode=nonstrict;

set hive.exec.max.dynamic.partitions.pernode=600000;

set hive.exec.max.dynamic.partitions=6000000;

set hive.exec.max.created.files=6000000;

最新文章

  1. [C#] C# 知识回顾 - 异常介绍
  2. CAS 4.0.0RC编译环境
  3. WPF自定义控件与样式(15)-终结篇 & 系列文章索引 & 源码共享
  4. Log打印日志遇到的问题
  5. Hadoop集群环境搭建
  6. [CareerCup] 11.6 Search a 2D Matrix 搜索一个二维矩阵
  7. Android 超仿Path时间轴和扇形菜单的效果
  8. 3月3日(3) Binary Tree Preorder Traversal
  9. Android中的六大布局
  10. Big ball of Mud
  11. 第十四章:Python の Web开发基础(一) HTML与CSS
  12. sublime安装AngularJS插件
  13. DirectX11 With Windows SDK--01 DirectX11初始化
  14. ES6躬行记(2)——扩展运算符和剩余参数
  15. 学习用Node.js和Elasticsearch构建搜索引擎(7):零停机时间更新索引配置或迁移索引
  16. day09 python之函数进阶
  17. servlet/和/*匹配的区别
  18. 使用jquery方法的时候,要注意对象是哪个,否则很容易出错
  19. npm WARN unmet dependency问题的解决方法
  20. 【Android UI设计与开发】第02期:引导界面(二)使用ViewPager实现欢迎引导页面

热门文章

  1. Pin学习笔记--安装及一些基本知识
  2. 来自高维的对抗 - 逆向TinyTool自制
  3. 【转】对于HttpClient和HtmlUnit的理解
  4. console深入理解
  5. IOS设备对position的支持性
  6. 第十篇 一个利用反射实现的Excel导出
  7. WebLogic写的网络爬虫
  8. 深入理解ajax系列第四篇——FormData
  9. wemall app商城源码中基于PHP的ThinkPHP惯例配置文件代码
  10. 4001: [TJOI2015]概率论