1.http://mirrors.hust.edu.cn/apache/hive/ 进入hive-1.2.2/ 下载 apache-hive-1.2.2-bin.tar.gz, 上传到 /opt/
2.tar apache-hive-1.2.2-bin.tar.gz 解压。
3.export HIVE_HOME=/opt/apache-hive-1.2.2-bin
进入apache-hive-1.2.2-bin/conf 目录
cp hive-default.xml.template hive-default.xml
touch hive-site.xml
全局默认配置hive-default.xml
用户自定义配置hive-site.xml会覆盖hive-default.xml
cp hive-env.sh.template hive-env.sh
hive-site.xml配置如下:
<property>