配置单元放置表不工作

3xiyfsfu  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(412)

我是hadoop世界里的一只新蜜蜂。我在配置单元中创建了一个内部表,并尝试将数据导入到该表中。
然后我试着放下table,但出现了以下错误。

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

我能做些什么来解决这个问题?
任何帮助都是非常感谢的。

b5lpy0ml

b5lpy0ml1#

看起来您的配置单元客户端与您要连接的元存储不匹配。请提供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>

相关问题