Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
JobClient.runJob() doesn't return any values. Any information about the exit status of a job is discarded (or appears only in logs).
It should be possible to return the exit status, so that JobClient users can determine whether a job was successfully completed or not. This is also important when using cmd-line tools in shell scripts - currently they don't return any exit codes, because it's not possible to determine the outcome of a job submitted through JobClient. As a consequence, it's difficult to automate repetitive jobs using shells scripts.
It would be also nice to have an exit message in case of errors, for human consumption.
I propose to implement one of the following:
- change the return type of this method from void to int
- or, better yet, to put the exit code and optional exit messages inside the JobConf instance under pre-defined keys.