1

我第一次在我的系统上安装了带有嵌入式 derby Metastore 的 hive,但它不工作。它显示了下面提到的错误。

Caused by: javax.jdo.JDOFatalInternalException: The java type java.lang.Long (jdbc-type="",sql-type="") cant be mapped for this metastore.No mapping is available.
NestedThrowables    
org.datanucleus.exceptions.NucleusException: The java type java.lang.Long (jdbc-type="",sql-type="") cant be mapped for this metastore.No mapping is available

请帮忙

4

1 回答 1

2

Hive 尚不支持 Java 9。安装 Java 7 或 8 并将 JDK 目录设置JAVA_HOME为安装 Hive 的环境。

PS: Metastore 比 derby 更喜欢 MySQL。

嵌入式 Metastore 数据库主要用于单元测试。一次只有一个进程可以连接到 Metastore 数据库,因此这不是一个真正实用的解决方案,但对于单元测试来说效果很好。

于 2017-03-31T07:39:56.400 回答