简体   繁体   English

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

[英]EOFException due to permission issue in Pig MR job

I am seeing the following exception in my Map reduce job running on my local hadoop cluster of 80 nodes. 我在Mapreduce作业中的80个节点的本地hadoop集群上看到以下异常。 This stack trace doesn't point to my code and I suppose it might be related to some permission issue. 此堆栈跟踪未指向我的代码,我想它可能与某些权限问题有关。 One interesting thing is that the job is failing like this if I run it as system account. 一件有趣的事情是,如果我以系统帐户身份运行该作业,则该作业将失败。 If I run it as myself the job runs just fine. 如果我自己运行,则工作正常。

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

Any help here is appreciated. 感谢您的帮助。 Let me know if you need any more information. 让我知道您是否需要更多信息。

This is weird but the permissions were not the issue here. 这很奇怪,但是这里的权限不是问题。 It was that the hadoop configurations being picked up were different for both users. 这是因为两个用户使用的hadoop配置不同。 I fixed that and it seems to be working now. 我已修复该问题,现在似乎正在工作。 Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM