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