hive启动出现Either your MetaData is incorrect, or you need to enable "datanucleus.schema.autoCreateTables"

发布时间 2023-12-02 22:44:24作者: 吾王_486

hive启动出现:

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.schema.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.schema.autoCreateTables"

在hive-site.xml添加上:

<property>
    <name>datanucleus.schema.autoCreateAll</name>
    <value>true</value>
 </property>