hive安装--独立模式

系统版本:CentOS Linux release 7.9.2009 (Core)
Hadoop版本:Hadoop 3.1.3

1.下载
官网:https://archive.apache.org/dist/hive/
下载地址1:https://mirrors.huaweicloud.com/apache/hive/

ps:
阿里云镜像和中科大镜像版本不全

2.解压
tar -zxf /opt/software/apache-hive-3.1.2-bin.tar.gz -C /opt/module/
mv /opt/module/apache-hive-3.1.2-bin/ /opt/module/hive

3.配置
cp /opt/module/hadoop/share/hadoop/common/lib/guava-27.0-jre.jar /opt/module/hive/lib/;rm -rf /opt/module/hive/lib/guava-19.0.jar
echo "export HIVE_HOME=/opt/module/hive" >> /etc/profile
echo 'export PATH=$PATH:$HIVE_HOME/bin' >> /etc/profile

4.初始化
schematool -initSchema -dbType derby

5.启动
start-dfs.sh;start-yarn.sh
hive

posted @ 2025-03-06 20:56  基础狗  阅读(28)  评论(0)    收藏  举报