hive 回避map-reduce job的场景

map-reduce 驱动需要消耗大量资源,也费时间。 对于简单查询,hive可以回避使用map-reduce,改用fetch task

 

--hiveconf

set hive.fetch.task.conversion=more;

那么对于select * from tab 这种就会很快。

 

如果有聚合计算,仍然会启动map-reduce。

如order by,count, group by等

posted on 2016-04-08 11:22  不忘初衷,方能致远  阅读(207)  评论(0)    收藏  举报

导航