启动PIG时出错:ERROR 2998:未处理的内部错误。找到界面jline.Terminal,但是预期了类

时间:2015-12-10 15:18:24

标签: apache-pig

我从apache下载了Pig,我已安装它,尝试使用pig -x local

运行它

这就是我得到的:

    15/12/10 15:06:26 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
15/12/10 15:06:26 INFO pig.ExecTypeProvider: Trying ExecType : MAPREDUCE
15/12/10 15:06:26 INFO pig.ExecTypeProvider: Picked MAPREDUCE as the ExecType
2015-12-10 15:06:26,063 [main] INFO  org.apache.pig.Main - Apache Pig version 0.15.0 (r1682971) compiled Jun 01 2015, 11:44:35
2015-12-10 15:06:26,063 [main] INFO  org.apache.pig.Main - Logging error messages to: /usr/local/pig/pig_1449756386061.log
2015-12-10 15:06:26,097 [main] INFO  org.apache.pig.impl.util.Utils - Default bootup file /home/ubuntu/.pigbootup not found
2015-12-10 15:06:26,132 [main] ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found interface jline.Terminal, but class was expected
Details at logfile: /usr/local/pig/pig_1449756386061.log
2015-12-10 15:06:26,157 [main] INFO  org.apache.pig.Main - Pig script completed in 206 milliseconds (206 ms)

我的日志文件包含以下内容:

Error before Pig is launched
----------------------------
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:174)
    at jline.ConsoleReader.<init>(ConsoleReader.java:169)
    at org.apache.pig.Main.run(Main.java:556)
    at org.apache.pig.Main.main(Main.java:177)
    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)
================================================================================

我下载并解压缩包后,我做了以下(猪在/ usr / local / pig):

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_79
  196  export PIG_PREFIX=/usr/local/pig
  197  export PATH=$PATH:$PIG_PREFIX/bin

任何想法有什么不对?

谢谢, 谢尔班

1 个答案:

答案 0 :(得分:6)