1.下载hive安装包并上传
http://archive.apache.org/dist/hive/
2、将hive文件上传到HADOOP集群,并解压
tar -zxvf apache-hive-1.1.0-bin.tar.gz -C /opt
3、配置环境变量,编辑/etc/profile
export HIVE_HOME=/opt/hive
export PATH=$HIVE_HOME/bin:$PATH
#让环境变量生效
source /etc/profile
4、修改hive配置文件
1)进入目录