2017-03-29 36 views
1

我在嵌入式德比Metastore的系统上首次安装配置单元,但它不起作用。它显示了下面提到的错误。启动配置单元时出现nucleusxception和jdofatalexception错误

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 

请帮

+0

你使用的是什么版本的'jdk'? – franklinsijo

+1

java的openjdk-9-jdk版本 –

回答

1

的Java 9尚未被蜂巢支持。安装Java 7或8,并在安装Hive的环境中将JDK目录设置为JAVA_HOME

PS:首选MySQL用于Metastore而不是Derby。

嵌入式Metastore数据库主要用于单元测试。一次只能有一个进程连接到Metastore数据库,因此它不是一个真正实用的解决方案,但对单元测试非常有效。