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)做元数据启动异常解决》 image.png

    原文作者:Anan9527
    原文地址: https://www.jianshu.com/p/a75da6307150
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞