2016-11-22 108 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。 您可以嘗試按照您的數據庫。