Front Page Forums Pig Pig error java.lang.IncompatibleClassChangeError: Found interface jline.Terminal

This topic contains 1 reply, has 1 voice, and was last updated by  DataFlair Team 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6617

    DataFlair Team
    Participant

    I downloaded Pig from apache, after installing it,I tried to run it using pig -x local
    I found this error
    ERROR 2998: Unhandled internal error. Found interface jline.Terminal, but class was expected

    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 org.apache.pig.Main.run(Main.java:532)
    at org.apache.pig.Main.main(Main.java:156)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    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)
    ================================================================================
    /home/jasbeer/pig_1469715738354.log (END)

    What is the solution to remove this error?

    #6618

    DataFlair Team
    Participant

    Please check your bashrc file, You will need to add these following parameters in your bashrc file to run Pig successfully –

    export JAVA_HOME=/usr/lib/jvm/java-7-oracle/
    export PATH=$PATH:/home/dataflair/pig-0.12.0-cdh5.3.2/bin
    export PIG_HOME=/home/dataflair/pig-0.12.0-cdh5.3.2
    export PIG_CLASSPATH=$HADOOP_HOME/conf

    You can replace the filepath according to your path.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.