FileOutputCommitter throws wrong type of exception when calling abortTask() to
handle a directory without permission
--------------------------------------------------------------------------------------------------------------------
Key: MAPREDUCE-3047
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3047
Project: Hadoop Map/Reduce
Issue Type: Improvement
Affects Versions: 0.24.0
Reporter: JiangKai
Priority: Trivial
Fix For: 0.24.0
When FileOutputCommitter calls abortTask() to create a temp directory, if the
user has no permission to access the directory, or a file with the same name
has existed, of course it will fail, however the system will output the error
information into the log file instead of throwing an exception.As a result,
when the temp directory is needed later, since the temp directory hasn't been
created yet, system will throw an exception to tell user that the temp
directory doesn't exist.In my opinion, the exception is not exact and the error
infomation will confuse users.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira