我已经安装了hadoop和hbase。当我在 hive 壳中运行show table命令时,出现以下错误。
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
最佳答案
我发现问题出在哪里。错误与linux机器的语言设置有关。在启动配置单元之前,export LANG=C
是必需的。
关于hadoop - 外壳程序异常java类型java.lang.Integer无法为此数据存储区映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18300075/