You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Edward J. Yoon (JIRA)" <ji...@apache.org> on 2008/04/10 04:58:05 UTC

[jira] Commented: (HADOOP-3218) getRecordWriter need not to check the existence of the output directory

    [ https://issues.apache.org/jira/browse/HADOOP-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587469#action_12587469 ] 

Edward J. Yoon commented on HADOOP-3218:
----------------------------------------

How about moving it to the FileOutputFormat.setOutputPath() from the RecordWriter?

> getRecordWriter need not to check the existence of the output directory
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-3218
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3218
>             Project: Hadoop Core
>          Issue Type: Bug
>            Reporter: Runping Qi
>
> I don't think the code segment in
> {code}
>     if (!fs.exists(outputPath)) {
>       throw new IOException("Output directory doesnt exist");
>     }
> {code} 
> is necessary.
> It actually cause unnecessary load to dfs namenode.

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