Pig error java.lang.IncompatibleClassChangeError: Found interface jline.Terminal

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Pig Pig error java.lang.IncompatibleClassChangeError: Found interface jline.Terminal

Viewing 1 reply thread
  • Author
    Posts
    • #6617
      DataFlair TeamDataFlair Team
      Spectator

      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 TeamDataFlair Team
      Spectator

      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 1 reply thread
  • You must be logged in to reply to this topic.