Hive快捷查询:不启用Mapreduce job启用Fetch task

启用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;
原文地址:https://www.cnblogs.com/linn/p/6772576.html