Hive启动报错: Found class jline.Terminal, but interface was expected

报错:

 1 [ERROR] Terminal initialization failed; falling back to unsupported
 2     java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
 3         at jline.TerminalFactory.create(TerminalFactory.java:101)
 4         at jline.TerminalFactory.get(TerminalFactory.java:158)
 5         at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)
 6         at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
 7         at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
 8         at org.apache.Hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:773)
 9         at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:715)
10         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
11         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
12         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
14         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15         at java.lang.reflect.Method.invoke(Method.java:606)
16         at org.apache.hadoop.util.RunJar.main(RunJar.java:212)

原因:

hadoop目录下存在老版本jline:

/hadoop-2.6.0/share/hadoop/yarn/lib:

-rw-r--r-- 1 root root  87325 Mar 10 18:10 jline-0.9.94.jar

解决:

cp /hive/apache-hive-1.1.0-bin/lib/jline-2.12.jar /hadoop-2.5.2/share/hadoop/yarn/lib

时间: 2024-11-10 09:34:25

Hive启动报错: Found class jline.Terminal, but interface was expected的相关文章

hive启动报错(整合spark)

spark整合hive后,hive启动报错: ls: cannot access /export/servers/spark/lib/spark-assembly-*.jar: No such file or directory 原因:spark版本升级到2.x以后,原有lib目录下的大JAR包被分散成多个小JAR包,原来的spark-assembly-*.jar已经不存在,所以hive没有办法找到这个JAR包. 解决方法:打开hive下面的bin目录,找到hive文件,编辑hive文件,找到如

[ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected

1:出现此种错误应该是jar版本包冲突了,启动hive的时候,由于hive依赖hadoop,启动hive,会将hadoop的配置以及jar包等等导入到hive中,导致jar包版本冲突,下面贴一下错误,然后贴一下解决方法: 1 [[email protected] bin]# ./hive 2 3 Logging initialized using configuration in jar:file:/home/hadoop/soft/apache-hive-1.2.1-bin/lib/hive-

hive启动报错 java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7B

启动hive报错: [[email protected] conf]# hive Logging initialized using configuration in file:/usr/local/hive/conf/hive-log4j.properties SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hadoop2/share/hadoop/

hive启动报错 java.lang.ClassNotFoundException: org.apache.hadoop.mapred.MRVersion

[[email protected] hive-1.1.0-cdh5.7.0]$ hivewhich: no hbase in (/home/hadoop/app/hive-1.1.0-cdh5.7.0/bin:/home/hadoop/app/hadoop-2.8.1/bin:/usr/java/jdk1.8.0_45/bin:/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/hadoop/bin)E

java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected

在安装hive经常出的错误: 解决办法: 将hive bin里的jline.jar复制替换掉hadoop/share/hadoop/yarn/lib的jar包 即可

hadoop2.6.0+hive1.2启动报错java.lang.IncompatibleClassChangeError

java.lang.IncompatibleClassChangeError 不兼容的类变化错误.当正在执行的方法所依赖的类定义发生了不兼容的改变时,抛出该异常.一般在修改了应用中的某些类的声明定义而没有对整个应用重新编译而直接运行的情况下,容易引发该错误. [报错信息] [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found

安装mongodb后启动报错libstdc++

安装mongo后启动报错如下图 显然说是libstdc++.so文件版本的问题,这种一般都是gcc版本太低了 接着查询gcc的版本    strings /usr/lib/libstdc++.so.6 | grep GLIBCXX 接着去找下libstdc++.so新点的版本,一定要根据自己的系统版本去找啊,由于我找错了版本报错系统位数不对 随后下载了一个64位的libstdc++.so.6.0.17的文件,然后软链成libstdc++.so.6 ln -s libstdc++.so.6.0.1

tomcat启动报错:java.net.BindException: Permission denied &lt;null&gt;:80

1,启动报错显示 [org.springframework.web.servlet.DispatcherServlet]FrameworkServlet 'springMvc': initialization completed in 382 ms Jun 01, 2015 6:39:06 PM org.apache.coyote.http11.Http11Protocol start SEVERE: Error starting endpoint java.net.BindException:

Tomcat启动报错[org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed

Tomcat启动报错: [org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/SoftwareDevelopment/Software/Eclipse4.3/eclipse-jee-kepler-SR1-win32-x86_64/Workspace/.metadata/.plugins/org.ec