【问题标题】:hive Drop table not working蜂巢删除表不起作用
【发布时间】:2014-06-11 15:27:25
【问题描述】:

我是 hadoop 世界中的一只新蜜蜂。 我在 hive 中创建了一个内部表,并尝试将数据导入其中。

然后我尝试删除表,但出现以下错误。

FAILED: Error in metadata: MetaException(message:javax.jdo.JDOException: Cannot join from org.datanucleus.store.rdbms.mapping.java.PersistableMapping@6a9ccd9f to org.datanucleus.store.rdbms.mapping.java.PersistableMapping@55eb1db2 since they have different numbers of datastore columns!
NestedThrowables:
org.datanucleus.exceptions.NucleusException: Cannot join from org.datanucleus.store.rdbms.mapping.java.PersistableMapping@6a9ccd9f to org.datanucleus.store.rdbms.mapping.java.PersistableMapping@55eb1db2 since they have different numbers of datastore columns!)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

我可以做些什么来解决这个问题?

非常感谢任何帮助。

【问题讨论】:

  • 这似乎与 PostgreSQL 没有任何关系,所以我已经取消了它的标记。我建议你展示你的代码 - 它可能更容易看到发生了什么。
  • 我的 Hive 元数据存储在 postgreSQL 表创建正常,但随后插入失败以及 drop table 命令失败,出现上述错误。

标签: hadoop hive hadoop-yarn metastore


【解决方案1】:

看起来您的 Hive 客户端与您要连接的元存储不匹配。请提供 hive-site.xml 内容,特别是 .metastore. 相关属性。

以下是要查看的属性

<property>
  <name>javax.jdo.option.ConnectionURL</name>
  <value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true</value>
  <description>the URL of the MySQL database</description>
</property>

<property>
  <name>hive.metastore.local</name>
  <value>true</value>
</property>

<property>
  <name>javax.jdo.option.ConnectionDriverName</name>
  <value>com.mysql.jdbc.Driver</value>
</property>

<property>
  <name>javax.jdo.option.ConnectionUserName</name>
  <value>root</value>
</property>

<property>
  <name>javax.jdo.option.ConnectionPassword</name>
  <value>root</value>
</property>

<property>
  <name>datanucleus.autoCreateSchema</name>
  <value>true</value>
</property>

<property>
  <name>datanucleus.fixedDatastore</name>
  <value>true</value>
</property>

【讨论】:

    猜你喜欢
    • 2018-12-21
    • 2019-02-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多