1.下载hive安装包:
Index of /hive/hive-3.1.2
2.上传到安装的服务器
3.用tar命令进行解压:
tar -zxvf apache-hive-3.1.2-bin.tar.gz
4.配置环境变量
1 #打开配置文件
2 [root@master Hive]# vi /etc/profile
3 #在后面追加以下内容
4 export HIVE_HOME=/opt/SoftWare/Hive/hive‐2.3.2
5 export PATH=$PATH:$HIVE_HOME/bin
6 #使设置生效
7 [root@master Hive]# source /etc/profile
5 修改配置文件hive-site.xml
该文件不存在,需要复制hive-default.xml.template来创建
#进入到hive‐2.3.2目录
[root@master Hive]# cd hive‐2.3.2/
#创建hive‐site.xml文件
[root@master hive‐2.3.2]# cp conf/hive‐default.xml.template conf/hive‐site.xml
[root@master hive‐2.3.2]# vi conf/hive‐site.xml
#创建指定目录
[root@master hive‐2.3.2]# hadoo