1、下载
cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/apache/hive/hive-2.1.1/apache-hive-2.1.1-bin.tar.gz
2、解压缩
tar zxvf apache-hive-2.1.1-bin.tar.gz
mv apache-hive-2.1.1-bin /home/ubuntu/hadoop/hive
3、初始化
cd /home/ubuntu/hadoop/hive
rm -rf bin/metastore_db/
./bin/schematool -initSchema -dbType derby
4、启动hiveCLI
cd bin
./hive
cd /tmp
wget https://mirrors.tuna.tsinghua.edu.cn/apache/hive/hive-2.1.1/apache-hive-2.1.1-bin.tar.gz
2、解压缩
tar zxvf apache-hive-2.1.1-bin.tar.gz
mv apache-hive-2.1.1-bin /home/ubuntu/hadoop/hive
3、初始化
cd /home/ubuntu/hadoop/hive
rm -rf bin/metastore_db/
./bin/schematool -initSchema -dbType derby
4、启动hiveCLI
cd bin
./hive