HIVE安装

1.安装hive

1.1 修改文件

mv apache-hive-2.3.0-bin  hive-2.3.0

1.2  修改/opt/module/hive-2.3.0/conf目录下的hive-env.sh.template为hive-env.sh

HADOOP_HOME=/opt/module/hadoop-2.7.6

export HIVE_CONF_DIR=/opt/module/hive-2.3.0/conf

1.3 修改配置文件/etc/profile

vim /etc/profile

export HIVE_HOME=/opt/module/hive-2.3.0
export PATH=$PATH:$HIVE_HOME/bin

source /etc/profile

1.4 查看hive是否安装成功

hive --version

2.hadoop集群启动

2.1 启动hdfs:

sbin/start-dfs.sh

2.2 启动yarn1:

sbin/start-yarn.sh

2.3 启动yarn2:

hadoop102:

yarn-daemon.sh start nodemanager

hadoop103:

yarn-daemon.sh start nodemanager

yarn-daemon.sh start resourcemanager

hadoop104:

yarn-daemon.sh start nodemanager

 

posted on 2020-12-03 16:50  happygril3  阅读(40)  评论(0)    收藏  举报

导航