Hi, When running bin/hive , i get the following error :- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface jline.Terminal, but class was expected at jline.ConsoleReader.<init>(ConsoleReader.java:191) at jline.ConsoleReader.<init>(ConsoleReader.java:186) at jline.ConsoleReader.<init>(ConsoleReader.java:174) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:719) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
I think this comes when there is version mismatching between hadoop version and hive version. In my case it is - hadoop-1.2.1 and hive-0.11.0 , which were working perfectly fine till yesterday. And yes, I unsuccessfully tried to run hadoop-2 on my system and later reverted back to hadoop-1. And , it occurred ...
Any help in debugging..?
Re: java.lang.IncompatibleClassChangeError in hive
Jline is a particularly problematic library. First it is not packaged properly, second there are many breaking changes between versions. What this error mean is that one tool in the stack was compiled against 1 jline version like 1.2 and another tool was compiled against 1.3 where there is a class signature change. When you try to run this code in the same VM it fails, you basically have to go through the dependency tree of all the software and build EVERYTHING against the same version of jline. On Tue, May 6, 2014 at 10:33 AM, chandra kant < [EMAIL PROTECTED]> wrote:
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by Sematext