hadoop-2.6.0-cdh5.4.0上安装hive-1.1.0-cdh5.4.0出现问题

MySQL数据库使用的是:MySQL-client-5.6.20-1.el6.x86_64.rpm,MySQL-devel-5.6.20-1.el6.x86_64.rpm,MySQL-server-5.6.20-1.el6.x86_64.rpm,HIVE_HOME lib下放的是:mysql-connector-java-5.1.34-bin.jar。
并创建了配置文件hive-site.xml ,并且使用hive中jline-2.12.jar 替换了hadoop-2.6.0-cdh5.4.0/share/hadoop/yarn/lib/jline-2.11.jar
启动hive仍是报错。不能实例化:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/modules/hadoop-2.6.0-cdh5.4.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/modules/spark-1.3.0-bin-2.6.0-cdh5.4.0/lib/spark-assembly-1.3.0-hadoop2.6.0-cdh5.4.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/modules/hadoop-2.6.0-cdh5.4.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/modules/spark-1.3.0-bin-2.6.0-cdh5.4.0/lib/spark-assembly-1.3.0-hadoop2.6.0-cdh5.4.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

Logging initialized using configuration in jar:file:/opt/modules/hive-1.1.0-cdh5.4.0/lib/hive-common-1.1.0-cdh5.4.0.jar!/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)

fish - Hadooper

赞同来自: BingClouds

lib/hive-exec.jar中有SessionHiveMetaStoreClient这个类,看看你的<hive_home>/lib中是否有hive-exec.jar这个文件? jar -tf hive-exec.jar | fgrep SessionHiveMetaStoreClient是否有输出?

BingClouds - 未来就在这里,只是尚未流行。

赞同来自: fish

有这个文件,谢谢老师,问题解决了。hive 1.1中没有hive-default.templete  这个文件,自己创建的hive-site.xml开始没有头文件: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>   直接是<configuration>   </configuration>

要回复问题请先登录注册