Category Archives: beeline

HIVE : NoSuchMethodError: org.fusesource.jansi.internal.Kernel32.GetConsoleOutputCP()I

I have been trying to install hive on windows. I have 64 bit windows 8 on which HADOOP and SPARK are running. I have


all these variables set up on my system. Also, I was getting these error before

Missing Hive Execution Jar: C:\hadoop1\hadoop-2.7.2\apache-hive-1.2.1-bin/lib/hive-exec-*.jar

I solved these error by editing the Hive file inside bin folder of HIVE. These errors are because of the forward slash"/" in environment variables in HIVE file. I replace them with "\" and those errors are gone. But now I am facing another problem. I am getting these error

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/spark/spark-1.6.1-bin-hadoop2.6/lib/spark-assembly-1.6.1-hadoop2.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/hadoop2.7/hadoop-2.7.1/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Beeline version 1.6.1 by Apache Hive
Exception in thread "main" java.lang.NoSuchMethodError: org.fusesource.jansi.internal.Kernel32.GetConsoleOutputCP()I
    at jline.WindowsTerminal.getConsoleOutputCodepage(
    at jline.WindowsTerminal.getOutputEncoding(
    at jline.console.ConsoleReader.<init>(
    at jline.console.ConsoleReader.<init>(
    at jline.console.ConsoleReader.<init>(
    at org.apache.hive.beeline.BeeLine.getConsoleReader(
    at org.apache.hive.beeline.BeeLine.begin(
    at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(
    at org.apache.hive.beeline.BeeLine.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.hadoop.util.RunJar.main(

I have searched alot on these. Also I have posted these question on HIVE User mailing List but got no response. Please help me with this.