续
centos7搭建hadoop高可用(ha)集群:https://blog.csdn.net/greatxiaoting/article/details/82761223 或
centos7搭建hadoop分布式集群:https://blog.csdn.net/greatxiaoting/article/details/81571187
1.将hive安装包移动到windows系统和centos的共享目录
1)下载hive安装包
apache-hive-2.1.0-bin.tar.gz下载地址:https://pan.baidu.com/s/1m00O7WMCHmb5INc3i8EPkg
2)hive安装包复制到windows系统和centos的共享目录
共享目录设置参考:https://blog.csdn.net/greatxiaoting/article/details/81515065
2.安装hive
1)s101虚拟机进入hive安装包所在的共享目录
cd /mnt/hgfs/share/
2)解压hive安装包
tar -xzvf apache-hive-2.1.0-bin.tar.gz -C /soft
3)创建hive符号链接
cd /soft
ln -s apache-hive-2.1.0-bin hive
3.配置环境变量
1)打开环境变量配置文件
vim /etc/profile
2)添加环境变量信息
export HIVE_HOME=/soft/hive
export PATH=$PATH:$HIVE_HOME/bin
3)生效环境变量
source /etc/profile
4)验证环境变量是否配置成功
hive --version