[
https://issues.apache.org/jira/browse/MAPREDUCE-826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753168#action_12753168
]
Mahadev konar commented on MAPREDUCE-826:
-----------------------------------------
can we wrap the exception around try and catch and not let main() throw the
exception at the console?
you can do this:
{code}
int ret = 0;
try{
ret = ToolRunner.run(harchives, args);
} catch(Exception e) {
LOG.debug("Exception in archives ", e);
System.err.println(e.getLocalizedMessage());
System.exit(1);
}
System.exit(ret);
{code}
> harchive doesn't use ToolRunner / harchive returns 0 even if the job fails
> with exception
> -----------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-826
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-826
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: harchive
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Trivial
> Fix For: 0.21.0
>
> Attachments: mapreduce-826-1.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.