1、确定版本,hive的安装版本必须与本机hadoop的安装版本相同,要知道hive的安装版本可以登录:
本机采用的是:
hive-0.9.0+155
安装:
sudo yum install hive-0.9.0+155
配置文件hive-site.xml in /etc/hive/conf/hive-site.xml
Copy sth from hive-default.xml.template to hive-site.xml
The content of hive-site.xml
2、javax.jdo.option.ConnectionURL
jdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true
JDBC connect string for a JDBC metastore
javax.jdo.option.ConnectionDriverName
org.
3、apache.derby.jdbc.EmbeddedDriver
Driver class name for a JDBC metastore
javax.jdo.option.ConnectionUserName
APP
username to use against metastore database4、iption>
javax.jdo.option.ConnectionPassword
mine
password to use against metastore database
hive.metastore.warehouse.di
5、r
/user/hive/warehouse
location of default database for the warehouse
hive.exec.scratchdir
/tmp/hive-${user.name}
Scratch space for Hive jobs