[安装]Hive版本更新 2015-11-21 15:00

操作

各节点都执行如下操作

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
cd /opt
tar -zxvf apache-hive-1.2.1-bin.tar.gz
# 删除旧版本软链接
rm -f hive 
# 创建新版本软链接
ln -s apache-hive-1.2.1-bin hive
cp apache-hive-1.0.0-bin/lib/mysql-connector-java-5.1.22-bin.jar hive/lib/
cp apache-hive-1.0.0-bin/conf/hive-env.sh hive/conf
cp apache-hive-1.0.0-bin/conf/hive-site.xml hive/conf
cp apache-hive-1.0.0-bin/conf/hive-log4j.properties hive/conf
mkdir hive/log
mkdir hive/tmp
chown -R hadoop:hadoop hive
chown -R hadoop:hadoop hive/*
Tags: #Hive    Post on Hadoop