1. 参数声明:在hive的CTL环境中设置(临时)
比如:set hive.fetch.task.conversion=more;
?
2.命令行设置:使用hadoop命令设置(临时)
hive --hiveconf hive.fetch.task.conversion=more;
?
3.配置文件:--${HIVE_HOME}/conf/hive-site.xml里面加入以下配置(长期)
<property>
<name>hive.fetch.task.conversion</name>
<value>more</value>
</property>
?
4.修改文件$HOME/.hiverc文件(长期,当前用户)
?
优先级:参数声明?>?命令行参数?>?.hiverc文件?>?配置文件设定
原文:http://gaoxianwei.iteye.com/blog/2159332