Live instructor-led & Self-paced Online Certification Training Courses (Big Data, Hadoop, Spark) Forums Pig Pig error java.lang.IncompatibleClassChangeError: Found interface jline.Terminal

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

    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>(
    at jline.ConsoleReader.<init>(
    at org.apache.pig.Main.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(
    /home/jasbeer/pig_1469715738354.log (END)

    What is the solution to remove this error?


    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

    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.