1、确定版本,hive 的安装版本必须与本机 hadoop 的安装版本相同,要知道 hive的安装版本可以登录:https:/ yum install hive-0.9.0+155配置文件 hive-site.xml in /etc/hive/conf/hive-site.xmlCopy sth from hive-default.xml.template to hive-site.xmlThe content of hive-site.xmljavax.jdo.option.ConnectionURLjdbc:derby:;databaseName=/var/lib/hive/metastore
2、/metastore_db;create=trueJDBC connect string for a JDBC metastorejavax.jdo.option.ConnectionDriverNameorg.apache.derby.jdbc.EmbeddedDriverDriver class name for a JDBC metastorejavax.jdo.option.ConnectionUserNameAPPusername to use against metastore databasejavax.jdo.option.ConnectionPasswordminepassword to use against metastore databasehive.metastore.warehouse.dir/user/hive/warehouselocation of default database for the warehousehive.exec.scratchdir/tmp/hive-$user.nameScratch space for Hive jobs