Hive 0.13的配置与部署
使用版本:Hive 0.13.1
1、Metastore(MySQL作为元数据存储,安装于Master1节点,前提是MySQL的访问权限需要设置好。)
1)解压
tar zxf apache-hive-0.13.1-bin.tar.gz
mv apache-hive-0.13.1-bin /usr/hive013
vim /etc/profile加入
export HIVE_HOME=/usr/hive013
PATH=$HIVE_HOME/bin:$PATH
source /etc/profile
2)配置hive-env.sh文件(启动时用到的环境文件)
Hadoop_HOME=/usr/hadoop-2.2.0
3)复制hive-default.xml -> hive-site.xml文件(配置文件)
javax.jdo.option.ConnectionURL
jdbc:mysql://master1:3306/metastore?=createDatabaseIfNotExist=true
JDBC connect string for a JDBCmetastore
javax.jdo.option.ConnectionDriverName
com.mysql.jdbc.Driver
Driver class name for a JDBCmetastore
javax.jdo.option.ConnectionUserName
hive
username to use against metastoredatabase
javax.jdo.option.ConnectionPa