标签:hive 安装
下载hive的安装包解压在hadoop集群上的任何一台机器上都可以
mysql jdbc驱动拷贝到hive的lib目录下
hive-env.sh
HADOOP_HOME=/opt/modules/hadoop-2.2.0
修改hive-site.xml
<property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true</value> </property> <property> <name>javax.jdo.option.ConnectionDriverName</name> <value>com.mysql.jdbc.Driver</value> </property> <property> <name>javax.jdo.option.ConnectionPassword</name> <value>root</value> </property> <property> <name>javax.jdo.option.ConnectionUserName</name> <value>root</value> </property> //配置图形界面jar包 <property> <name>hive.hwi.war.file</name> <value>lib/hive-hwi-0.14.0.war</value> <description>This sets the path to the HWI war file, relative to ${HIVE_HOME}. </description> </property>
其他参考文章:
http://blog.itpub.net/28929558/viewspace-1192693/
本文出自 “厚积薄发,磨刀不误砍柴工” 博客,请务必保留此出处http://tianxingzhe.blog.51cto.com/3390077/1711884
标签:hive 安装
原文地址:http://tianxingzhe.blog.51cto.com/3390077/1711884