HIVE使用PG(postgreSQL)做元数据启动异常解决

上午10点58:39.292分 WARN    Query   
[main]: Query for candidates of org.apache.hadoop.hive.metastore.model.MVersionTable and subclasses resulted in no possible candidates
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"
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"
    at org.datanucleus.store.rdbms.table.AbstractTable.exists(AbstractTable.java:485)
    at org.datanucleus.store.rdbms.RDBMSStoreManager$ClassAdder.performTablesValidation(RDBMSStoreManager.java:3380)
...
上午10点55:18.670分 ERROR   HiveMetaStore   
[main]: MetaException(message:Version information not found in metastore. )
    at org.apache.hadoop.hive.metastore.ObjectStore.checkSchema(ObjectStore.java:7276)
    at org.apache.hadoop.hive.metastore.ObjectStore.verifySchema(ObjectStore.java:7252)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

解决方案:

1.将datanucleus.autoCreateSchema 改为true
2.将hive.metastore.schema.verification 改为 flash
HIVE使用PG(postgreSQL)做元数据启动异常解决_第1张图片
image.png

你可能感兴趣的:(HIVE使用PG(postgreSQL)做元数据启动异常解决)