一、按照自己的需要去下載相應 的版本並傳到centos中
https://archive.apache.org/dist/hive/hive-1.2.1/
二、解壓並改名
[root@hlh003 software]# tar -zxvf apache-hive-1.2.1-bin.tar.gz -C /opt/module/
[root@hlh001 module]# mv apache-hive-1.2.1-bin/ hive
三、修改配置文件名字爲可用
[root@hlh001 conf]# cp hive-env.sh.template hive-env.sh
四、配置hive-env.sh文件
[root@hlh001 conf]# vim hive-env.sh
(a)配置HADOOP_HOME路徑
export HADOOP_HOME=/opt/module/hadoop-2.7.2
(b)配置HIVE_CONF_DIR路徑
export HIVE_CONF_DIR=/opt/module/hive/conf