1.安装java
2.安装Hadoop
3.安装hive
$>cp /mnt/hgfs/2.安装环境/download/apache-hive/apache-hive-1.2.1-bin.tar.gz ~/soft/
$>tar -zxvf apache-hive-1.2.1-bin.tar.gz
$>ln -s apache-hive-1.2.1-bin hive
配置环境变量:
【~/.bash_profile】
#hive install
export HIVE_HOME=/home/hyxy/soft/hive
export PATH=$HIVE_HOME/bin:$PATH
$>source .bash_profile
4.开启集群相关服务:
$>zkServer.sh start
$>start-all.sh
5.进入Hive
$>hive
6.测试:
hive>show databases;
hive>use default;
hive>show tables;
hive>create table text(id int ,name String);
hive>insert into text values(1,'zhangsan');
hive>select * from text;
hive>drop table text;
Hive 1.2.1安装--详细过程
最新推荐文章于 2023-07-14 17:16:18 发布