码迷,mamicode.com
首页 > 其他好文 > 详细

hive启动问题 Unable to start Hive Cli

时间:2016-08-16 14:49:46      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:hive

hive启动问题 Unable to start Hive Cli


[hadoop@om-liyongjian-119 lib]$ hiveLogging initialized using configuration in file:/opt/hadoop/apache-hive-0.14.0-bin/conf/hive-log4j.properties

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/opt/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/opt/hadoop/apache-hive-0.14.0-bin/lib/hive-jdbc-0.14.0-standalone.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]

Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface jline.Terminal, but class was expected

    at jline.ConsoleReader.<init>(ConsoleReader.java:191)

    at jline.ConsoleReader.<init>(ConsoleReader.java:186)

    at jline.ConsoleReader.<init>(ConsoleReader.java:174)

    at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:798)

    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:746)

    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)

    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)

    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

 

解决办法

[root@om-liyongjian-119 bin]# find / -name  jline*

/opt/zookeeper/src/java/lib/jline-0.9.94.LICENSE.txt

/opt/zookeeper/lib/jline-0.9.94.jar

/opt/zookeeper/lib/jline-0.9.94.LICENSE.txt

/opt/hadoop/hadoop-2.6.0/share/jline-0.9.94.jar_bak

/opt/hadoop/hadoop-2.6.0/share/hadoop/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/jline-0.9.94.jar

/opt/hadoop/hadoop-2.6.0/share/hadoop/kms/tomcat/webapps/kms/WEB-INF/lib/jline-0.9.94.jar

/opt/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib/jline-2.12.jar

/opt/hadoop/apache-hive-0.14.0-bin/lib/jline-0.9.94.jar

[root@om-liyongjian-119 ~]# cd /opt/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib/

[root@om-liyongjian-119 lib]# mv jline-2.12.jar  jline-2.12.jar.bak

[root@om-liyongjian-119 bin]# cp /opt/hadoop/apache-hive-0.14.0-bin/lib/jline-0.9.94.jar /opt/hadoop/hadoop-2.6.0/share/hadoop/yarn/lib

 

使用hive


[hadoop@om-liyongjian-119 lib]$ hive

Logging initialized using configuration in file:/opt/hadoop/apache-hive-0.14.0-bin/conf/hive-log4j.properties

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/opt/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/opt/hadoop/apache-hive-0.14.0-bin/lib/hive-jdbc-0.14.0-standalone.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]


hive>

    > show databases

    > ;

OK

default


Time taken: 0.948 seconds, Fetched: 1 row(s)


本文出自 “小运维的逆袭” 博客,请务必保留此出处http://liyongjian5179.blog.51cto.com/10134786/1839205

hive启动问题 Unable to start Hive Cli

标签:hive

原文地址:http://liyongjian5179.blog.51cto.com/10134786/1839205

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!