Tasks need to emit a better error message when job-acls.xml file cannot be 
created
----------------------------------------------------------------------------------

                 Key: MAPREDUCE-1652
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1652
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 0.22.0
            Reporter: Ravi Gummadi
             Fix For: 0.22.0


If task cannot create job-acls.xml in userlogs/$jobid/task-attempt-dir(because 
of disc being full, OR disc has gone bad, etc), then task should emit a better 
error message instead of failing with FileNotFoundException in writeJobACLs().

The stack trace shown currently is:

java.lang.Throwable: Child Error
        at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:242)
Caused by: java.io.FileNotFoundException:
$mapred-local-dir/userlogs/job_201003240402_0402/attempt_201003240402_0402_m_002091_0/job-acl.xml
 (No such
file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at org.apache.hadoop.mapred.TaskRunner.writeJobACLs(TaskRunner.java:303)
        at 
org.apache.hadoop.mapred.TaskRunner.prepareLogFiles(TaskRunner.java:286)
        at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:205)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to