启用MapReduce Job是会消耗系统开销的。对于这个问题,从Hive0.10.0版本开始,对于简单的不需要聚合的类似SELECT <col> from <table> LIMIT n语句,不需要起MapReduce job,直接通过Fetch task获取数据

set hive.fetch.task.conversion=more;

select * from info_table
where dt='2017-04-26'
limit 1;

 

posted on 2017-04-27 09:29  凌度  阅读(252)  评论(0编辑  收藏  举报