1、配置hive在HDFS上的根目录位置
<property>
<name>hive.metastore.warehouse.dir</name>
<value>/hive</value>
</property>
2、配置derby数据库文件的位置(固定derby数据的位置)
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby:;databaseName=/usr/local/bigdata/hive-0.14.0/metastore_db;create=true</value>
</property>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://hadoop1: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.ConnectionUserName</name>
<value>root</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>root</value>
</property>
.hiverc的配置,参考《.hiverc》