码迷,mamicode.com
首页 > 其他好文 > 详细

在hive中查询导入数据表时FAILED: SemanticException [Error 10096]: Dynamic partition strict mode requires at least one static partition column. To turn this off set hive.exec.dynamic.partition.mode=nonstrict

时间:2019-01-08 21:58:23      阅读:1877      评论:0      收藏:0      [点我收藏+]

标签:cep   查询   Requires   出现   ant   err   mod   str   oca   

当我们出现这种情况时

FAILED: SemanticException [Error 10096]: Dynamic partition strict mode requires at least one static partition column. To turn this off set hive.exec.dynamic.partition.mode=nonstrict

这时候我们需要改变一下设置

 

set hive.exec.dynamici.partition=true;
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.mode.local.auto=true;
SET hive.exec.max.dynamic.partitions=100000;
SET hive.exec.max.dynamic.partitions.pernode=100000;
set hive.exec.max.created.files=100000;

在hive中添加一下配置

重新运行就可以成功了

 

 

 

在hive中查询导入数据表时FAILED: SemanticException [Error 10096]: Dynamic partition strict mode requires at least one static partition column. To turn this off set hive.exec.dynamic.partition.mode=nonstrict

标签:cep   查询   Requires   出现   ant   err   mod   str   oca   

原文地址:https://www.cnblogs.com/zmoumou/p/10241517.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!