Hive – Execution Error

By | Y2018Y2018-4M-ȭD

참고문서: https://cwiki.apache.org/confluence/display/Hive/GettingStarted

$ hive
[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
at jline.TerminalFactory.create(TerminalFactory.java:101)
at jline.TerminalFactory.get(TerminalFactory.java:158)

Troubleshoot:

https://cwiki.apache.org/confluence/display/Hive/Hive+on+Spark%3A+Getting+Started

[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
Hive has upgraded to Jline2 but jline 0.94 exists in the Hadoop lib.
  1. Delete jline from the Hadoop lib directory (it’s only pulled in transitively from ZooKeeper).
  2. export HADOOP_USER_CLASSPATH_FIRST=true
  3. If this error occurs during mvn test, perform a mvn clean install on the root project and itests directory.
 

 

739 total views, 7 views today

댓글 남기기