Hive 3.1.3最小化安装

发布时间 2023-12-24 16:20:29作者: SpringCore

1.解压

mkdir /usr/hive
tar -zxvf apache-hive-3.1.3-bin.tar.gz -C /usr/hive

2.配置Hive环境变量

在/etc/profile.d中配置

1.新建hive.sh

vi /etc/profile.d/hive.sh
export HIVE_HOME=/usr/hive/apache-hive-3.1.3-bin
export PATH=$PATH:$HIVE_HOME/bin

2.授予文件执行权限

chmod u+x /etc/profile.d/hive.sh

3.刷新环境变量

source /etc/profile

3.初始化元数据库(默认是derby数据库)

schematool -dbType derby -initSchema