Hive 使用非默认配置单元元存储数据库名称

Hive 使用非默认配置单元元存储数据库名称,hive,metastore,Hive,Metastore,一台机器上有两个版本的hive。其目的是通过一个mysql实例来支持这两个方面。为此,我们需要使用与metastore不同的数据库名称 以下内容已添加到第二个配置单元实例的hive-conf.xml中:请注意,db名称为metastore14,并且createDatabaseIfNotExist已设置为true: <configuration> <property> <name>javax.jdo.option.ConnectionURL</name

一台机器上有两个版本的hive。其目的是通过一个mysql实例来支持这两个方面。为此,我们需要使用与metastore不同的数据库名称

以下内容已添加到第二个配置单元实例的hive-conf.xml中:请注意,db名称为metastore14,并且createDatabaseIfNotExist已设置为true:

<configuration>
<property>
  <name>javax.jdo.option.ConnectionURL</name>
  <value>jdbc:mysql://localhost/metastore14?createDatabaseIfNotExist=true</value>
  <description>the URL of the MySQL database</description>
</property>
但是,从配置单元客户端连接到配置单元14时,会发生以下错误:

Logging initialized using configuration in jar:file:/usr/local/Cellar/hive/0.14.0/libexec/lib/hive-common-0.14.0.jar!/hive-log4j.properties

-- run create table statement and get following error:

Caused by: org.datanucleus.store.rdbms.exceptions.MissingTableException: 
Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus
requires this table to perform its persistence operations. Either your 
MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"
需要采取哪些额外步骤

17:08:28/libexec $echo $HIVE_CONF_DIR
/usr/local/Cellar/hive/0.14.0/libexec/conf
Logging initialized using configuration in jar:file:/usr/local/Cellar/hive/0.14.0/libexec/lib/hive-common-0.14.0.jar!/hive-log4j.properties

-- run create table statement and get following error:

Caused by: org.datanucleus.store.rdbms.exceptions.MissingTableException: 
Required table missing : "`VERSION`" in Catalog "" Schema "". DataNucleus
requires this table to perform its persistence operations. Either your 
MetaData is incorrect, or you need to enable "datanucleus.autoCreateTables"