我正在尝试在Windows机器上运行Hive。 但是,当我尝试从 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)
请帮忙。
答案 0 :(得分:2)
您需要运行 $ HIVE_HOME \ scripts \ metastore \ upgrade \ mysql 中提到的hive架构.sql脚本。就我而言,我使用 mysql 作为 hive 2.1.1 的基础数据库,所以我运行了hive-schema-2.1.0.mysql.sql。 您可以按照您的数据库进行尝试。