2016-11-22 106 views
1

我试图在Windows机器上运行Hive。 但是,当我试图从运行命令C:\ hadoop-2.7.1 \ hive-2.1.0 \ bin>配置单元它给出以下错误。所需表格丢失:目录“”Schema“中的”DBS“”

Required table missing : "DBS" 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 : "DBS" 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" 
    at org.datanucleus.store.rdbms.table.AbstractTable.exists(AbstractTable.java:606) 

请帮忙。

回答

0

您需要运行$ HIVE_HOME \ scripts \ metastore \ upgrade \ mysql中提到的配置单元模式.sql脚本。在我的情况下,我使用mysql作为配置单元的基础数据库2.1.1所以我运行了hive-schema-2.1.0.mysql.sql。 您可以尝试按照您的数据库。