How to set dynamic partitioning in hive query

I want to set the partitioning into dynamic mode, so I use:
set hive.exec.dynamic.partition=True;
set hive.exec.dynamic.partition.mode=nonstrict;
however, I was continuously informed with the messages


I am wondering if anyone knows the reason and the possible solutions? Thanks!