0

我已经安装了 hadoop 和 hbase。当我在 hive shell 中运行 show tables 命令时,出现以下错误。

Hive version 0.10.0

Hbase version 0.90.6

Hadoop version 1.1.2

hive> show tables;

FAILED: Error in metadata: MetaException(message:Got exception: org.apache.hadoop.hive.metastore.api.MetaException javax.jdo.JDOFatalInternalException: JDBC type integer declared for field 
"org.apache.hadoop.hive.metastore.model.MTable.createTime" of java type java.lang.Integer cant be mapped for this datastore.

NestedThrowables:
org.datanucleus.exceptions.NucleusException: JDBC type integer declared for field "org.apache.hadoop.hive.metastore.model.MTable.createTime" of java type java.lang.Integer cant be mapped for this datastore.)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
4

1 回答 1

0

我发现问题出在哪里。错误与 linux 机器的语言设置有关。在启动 hive 之前export LANG=C是必要的。

于 2013-08-19T08:30:44.950 回答