不会在蜂巢中创建存储桶

时间:2017-03-20 12:57:53

标签: hadoop hive hadoop-partitioning

看一下脚本, 分区表后,hive存储桶不会创建

step 1.
create table orders_bucket9
(order_id int,order_date string,order_customer_id int,order_status string) 
partitioned by (order_month string) 
clustered by (order_status) into 4 buckets
row format delimited
fields terminated by ',';

step 2.
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.dynamic.partition=true;
set hive.enforce.buckting=true;
step 3.
insert into table orders_bucket9 partition(order_month) select                order_id,order_date,order_customer_id,order_status,substr(order_date,1,7) order_month from orders;

当我在order_month的基础上对表进行分区时,分区正在创建,但是压缩不是???

0 个答案:

没有答案