Hadoop JobClient can return specific exit codes for specific classes of 
exceptions
----------------------------------------------------------------------------------

                 Key: HADOOP-2856
                 URL: https://issues.apache.org/jira/browse/HADOOP-2856
             Project: Hadoop Core
          Issue Type: Improvement
          Components: mapred
    Affects Versions: 0.16.0
            Reporter: Hemanth Yamijala


Today if a job tracker becomes unresponsive or dies, the hadoop JobClient 
throws an exception subclass of IOException and exits with an exit code of 1. 
However, it would probably fail with the same exit code if there's any other 
type of exception as well. Programs like HOD which use this client (indirectly 
through the hadoop script) can make better decisions if the error code is more 
distinguishable. For e.g. if it's a network related exception, we can treat the 
cluster are unusable, or retry after awhile etc. More generically, if 
categories of exceptions can be treated with specific exit codes, it will help. 

Comments ?

-- 
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