Live instructor-led & Self-paced Online Certification Training Courses (Big Data, Hadoop, Spark) 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 1 year ago.

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

    DataFlair Team

    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?


    DataFlair Team

    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.