1. 程式人生 > >java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected

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

在配置hadoop2.6 ,hive1.2的時候,Hive 啟動報錯:

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

解決方法是:
將hive下的新版本jline的JAR包拷貝到hadoop下:
cp /hive/apache-hive-1.1.0-bin/lib/jline-2.12.jar ./hadoop-2.6.0/share/hadoop/yarn/lib:
-rw-r–r-- 1 root root 213854 Mar 11 22:22 jline-2.12.jar

但是拷貝完成後依然報錯時:
檢查~/.bash_profile 是否配置了HADOOP_CLASSPATH
如果配置此路徑配置到了別的地方,依然會找不到jline
將此配置註釋掉 則異常解除