标签:rom 一个 limited user 限制 select ble hive bsp
create table user_order(id int, name string, age int, province string, city string)
row format delimited
fields terminated by ‘\t‘;
set mapreduce.job.reduces=2;
一个 reduce,在真实使用中,需要加 limit 限制。
truncate table user_order; insert into user_order select * from user_par order by id;
在每个 reduce 中分别排序
truncate table user_order; insert into user_order select * from user_par sort by id;
truncate table user_order; insert into user_order select * from user_par distribute by id;
cluster by = distribute by + sort by
truncate table user_order;
insert into user_order select * from user_par cluster by id;
标签:rom 一个 limited user 限制 select ble hive bsp
原文地址:https://www.cnblogs.com/share23/p/10259896.html