Tag Archives: Terminal initialization failed

[ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChang

1. After installing hive, it can’t start and reports the following error

[ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline

The reason is the presence of an old version of jline in the hadoop directory.
/hadoop-2.6.5/share/hadoop/yarn/lib:
-rw-r–r– 1 wkz wkz 87325 Mar 10 18:10 jline-0.9.94.jar

Solution:
Copy the JAR package of the new version of jline under hive to hadoop at.
cp /hive/lib/jline-2.12.jar ./

/hadoop-2.6.5/share/hadoop/yarn/lib:

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

-rw-r–r– 1 wkz wkz 213854 Mar 11 22:22 jline-2.12.jar

Then delete the old jline-0.9.94.jar package, or rename it and start successfully.
————————————————