简单查询的Fetch task 功能:从Hive0.10.0版本开始支持
配置方式:
set.hive.fetch.task.conversion=more; ---开启了Fetch任务,所以对于上述简单的列查询不在启用MapReduce job!
hive --hiveconf hive.fetch.task.conversion=more;
上面的两种方法都可以开启了Fetch任务,但是都是临时起作用的;如果你想一直启用这个功能,可以在${HIVE_HOME}/conf/hive-site.xml里面加入以下配置:
修改hive-site.xml文件
property>
<name>hive.fetch.task.conversion</name>
<value>more</value>
<description>
</description>
</property>