执行pig时报例如以下错误
2015-07-14 10:41:12,869 [main] ERROR org.apache.pig.Main - ERROR 2998: Unhandled internal error. Found interface jline.Terminal, but class was expected
解决的方法:
删除{HADOOP_HOME}/share/hadoop/yarn/lib下的jline。然后将{PIG_HOME}/lib下的jline拷到{HADOOP_HOME}/share/hadoop/yarn/lib下,重新启动hadoop,再启动pig。就能够正常启动了