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

启动hive时报如下错误:

Hive启动报错: Found class jline.Terminal, but interface was expected_第1张图片
 

条件:

hive1.2.1

 

hadoop2.5.2

 

原因:

 

hadoop目录下存在老版本jline:

/hadoop-2.5.2/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

你可能感兴趣的:(Hive启动报错: Found class jline.Terminal, but interface was expected)