缺少必需的表:目录“”架构中的“dbs”

bhmjp9jg  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(688)

我正在windows计算机上运行配置单元。但是当我试图从c:\hadoop-2.7.1\hive-2.1.0\bin>hive运行命令时,它会给出以下错误。

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)

请帮忙。

9rygscc1

9rygscc11#

您需要运行$hive\u home\scripts\metastore\upgrade\mysql中提到的hive schema.sql脚本。在我的例子中,我使用mysql作为hive2.1.1的底层数据库,所以我运行了hive-schema-2.1.0.mysql.sql。您可以根据您的数据库进行尝试。

相关问题