<property><name>hive.exec.dynamic.partition</name><value>true</value><description>Whether or not to allow dynamic partitions in DML/DDL.</description></property><property><name>hive.exec.max.dynamic.partitions</name><value>10000</value><description>Maximum number of dynamic partitions allowed to be created in total.</description></property><property><name>hive.exec.max.dynamic.partitions.pernode</name><value>10000</value><description>Maximum number of dynamic partitions allowed to be created in each mapper/reducer node.</description></property><property><name>hive.exec.dynamic.partition.mode</name><value>nonstrict</value>#开启允许所有分区都是动态的,否则必须要有静态分区才能使用。<description>
In strict mode, the user must specify at least one static partition
incase the user accidentally overwrites all partitions.
In nonstrict mode all partitions are allowed to be dynamic.
</description></property>
ddl语句创建分区表
CREATE TABLE IF NOT EXISTS `test_p`(`id` int COMMENT 'date in file',