Looking into your error I can say that the error you are facing because of not setting up the properties for partitioning and bucketing. I would suggest you, first you set all these properties and I hope the error will go. Here are the properties, just set all these properties in your hive shell:
hive> SET hive.exec.dynamic.partition=true;
hive> SET hive.exec.dynamic.partition.mode=non-strict;
hive> SET hive.enforce.bucketing =true;
I hope it will work.