@tsing1226
2015-12-22T20:08:43.000000Z
字数 287
阅读 887
hive
set mapreduce.job.reduce=3;
select * from db_1128.emp sort by empno desc ;
insert overwrite local directory '/opt/datas/sortby_res'
select * from db_1128.emp sort by empno desc ;
不管设置reduce数目多少,默认执行是都是两个reduce,导出的文件也是两个文件;
原因:set mapreduce.job.reduce=3;设置的参数错误,应为
set mapreduce.job.reduces=3;