解决:Dynamic partition strict mode requires at least one static partition column.....

问题描述:

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

原因:

动态分区, 要先设定partition参数。

解决:

#开启允许所有分区都是动态的,否则必须要有静态分区才能使用。

set hive.exec.dynamic.partition=true;

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

 

你可能感兴趣的:(大数据,hive)