当前位置:  开发笔记 > 运维 > 正文

启动PIG时出错:ERROR 2998:未处理的内部错误.找到界面jline.Terminal,但是预计会上课

如何解决《启动PIG时出错:ERROR2998:未处理的内部错误.找到界面jline.Terminal,但是预计会上课》经验,为你挑选了1个好方法。

我从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.(ConsoleReader.java:174)
    at jline.ConsoleReader.(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> 小智..:

加上这个 -

export HADOOP_USER_CLASSPATH_FIRST=true

参考
https://issues.apache.org/jira/browse/PIG-3851
hive startup - [ERROR]终端初始化失败; 回到不支持的

推荐阅读
yzh148448
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有