由于Pig MR作业中的权限问题导致EOFException

时间:2012-12-11 20:24:41

标签: hadoop permissions apache-pig

我在我的本地hadoop群集80个节点上运行的Map reduce作业中看到以下异常。此堆栈跟踪不指向我的代码,我想它可能与某些权限问题有关。一个有趣的事情是,如果我将它作为系统帐户运行,那么这个工作会失败。如果我像我一样运行它,那么工作运行得很好。

java.lang.RuntimeException: java.io.EOFException
    at org.apache.hadoop.io.WritableComparator.compare(WritableComparator.java:103)
    at org.apache.hadoop.mapreduce.ReduceContext.nextKeyValue(ReduceContext.java:120)
    at org.apache.hadoop.mapreduce.ReduceContext.nextKey(ReduceContext.java:92)
    at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:175)
    at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:649)
    at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:417)
    at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
    at org.apache.hadoop.mapred.Child.main(Child.java:249)
Caused by: java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:250)
    at org.apache.pig.impl.io.PigNullableWritable.readFields(PigNullableWritable.java:115)
    at org.apache.hadoop.io.WritableComparator.compare(WritableComparator.java:100)
    ... 10 more

此处的任何帮助表示赞赏。如果您需要更多信息,请与我们联系。

1 个答案:

答案 0 :(得分:0)

这很奇怪,但权限不是问题。对于两个用户来说,拾取的hadoop配置是不同的。我解决了这个问题,现在似乎正在发挥作用。感谢