【问题标题】:Error with nucleusexception and jdofatalexception when starting hive启动 hive 时出现 nucleusexception 和 jdofalexception 错误
【发布时间】:2017-03-29 07:20:55
【问题描述】:

我是第一次在我的系统上安装带有嵌入式 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

请帮忙

【问题讨论】:

  • 你使用的是什么版本的jdk
  • openjdk-9-jdk 版本的java

标签: hadoop hive hadoop2 hadoop-2.7.2


【解决方案1】:

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

PS: Metastore 首选 MySQL 而不是 derby。

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

【讨论】:

    猜你喜欢
    • 2017-11-04
    • 1970-01-01
    • 1970-01-01
    • 2015-01-21
    • 2019-01-30
    • 1970-01-01
    • 1970-01-01
    • 2012-10-31
    • 2013-09-18
    相关资源
    最近更新 更多