启用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;

 

相关文章:

  • 2021-07-26
  • 2022-01-31
  • 2022-02-18
  • 2021-12-10
  • 2021-10-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-04-10
  • 2022-12-23
  • 2021-05-10
  • 2022-02-01
相关资源
相似解决方案