In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to solve the error report of java.lang.IncompatibleClassChangeError". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to solve the error report of java.lang.IncompatibleClassChangeError"!
Incompatible class change error. This exception is thrown when there is an incompatible change in the class definition on which the executing method depends. Generally, it is easy to cause this error when you modify the declaration definition of some classes in the application without recompiling the whole application.
[error message]
[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) at jline.console.ConsoleReader. (ConsoleReader.java:229) at jline.console.ConsoleReader. (ConsoleReader.java:221) at jline.console.ConsoleReader. (ConsoleReader.java:209) at org.apache.hadoop.hive.cli.CliDriver.setupConsoleReader (CliDriver.java:787) at org.apache.hadoop.hive.cli.CliDriver.executeDriver (CliDriver.java: 721) at org.apache.hadoop.hive.cli.CliDriver.run (CliDriver.java:681) at org.apache.hadoop.hive.cli.CliDriver.main (CliDriver.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethod) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org. Apache.hadoop.util.RunJar.run (RunJar.java:221) at org.apache.hadoop.util.RunJar.main (RunJar.java:136)
Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
At jline.console.ConsoleReader. (ConsoleReader.java:230) at jline.console.ConsoleReader. (ConsoleReader.java:221) at jline.console.ConsoleReader. (ConsoleReader.java:209) at org.apache.hadoop.hive.cli.CliDriver.setupConsoleReader (CliDriver.java:787) at org.apache.hadoop.hive.cli.CliDriver.executeDriver (CliDriver.java:721) at org.apache.hadoop.hive.cli.CliDriver.run (CliDriver.java:681) at org. Apache.hadoop.hive.cli.CliDriver.main (CliDriver.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethod) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.apache.hadoop.util.RunJar.run (RunJar.java:221) at org.apache.hadoop.util.RunJar.main (RunJar.java:136)
Stack@op4:~$
[solution]
Reason: the jline version in YARN is too low.
Copy the jline package from the ${hive_home} / lib directory to the ${hadoop_home} / share/hadoop/yarn/lib directory and start hive.
Solution: replace the jline in hive-lib with the yarn-lib directory:
Cp $HIVE_HOME/lib/jline-2.12.jar $HADOOP_HOME/share/hadoop/yarn/lib/
Rm-f $HADOOP_HOME/share/hadoop/yarn/lib/jline-0.9.94.jar
Problem solving
At this point, I believe you have a deeper understanding of "how to solve the error report of java.lang.IncompatibleClassChangeError". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.