进入hive目录
[root@master hive]# cd /usr/cstor/hive
进入conf目录
[root@master hive]# cd conf/
复制文件hive-env.sh.template
[root@master conf]# cd hive-env.sh.template hive-env.sh
编辑配置文件 hive-env.sh
把文件分发给slave1和slave2
[root@master hive]# scp -r /usr/cstor/hive/ root@slave1:/usr/cstor
[root@master hive]# scp -r /usr/cstor/hive/ root@slave2:/usr/cstor
启动hive
[root@master hive]# bin/hive
启动成功截图



