下载hive的安装包解压在hadoop集群上的任何一台机器上都可以
mysql jdbc驱动拷贝到hive的lib目录下
hive-env.shHADOOP_HOME=/opt/modules/hadoop-2.2.0
修改hive-site.xml
javax.jdo.option.ConnectionURL
jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true
javax.jdo.option.ConnectionDriverName
com.mysql.jdbc.Driver
javax.jdo.option.ConnectionPassword
root
javax.jdo.option.ConnectionUserName
root
//配置图形界面jar包
hive.hwi.war.file
lib/hive-hwi-0.14.0.war
This sets the path to the HWI war file, relative to ${HIVE_HOME}.
hive.metastore.warehouse.dir
/user/hive/warehouse
其他参考文章: