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

Jothi Padmanabhan commented on HADOOP-4927:
-------------------------------------------

True, this feature can be achieved by modifying RecordWriter implementations. 
But that would mean people who have their own implementations would need to add 
it themselves, see Devaraj's 
[comment|https://issues.apache.org/jira/browse/HADOOP-4927?focusedCommentId=12658455#action_12658455]
 Also, this feature is a sort of generic across the different output formats 
and having the framework support this would be useful. No?

> Part files on the output filesystem are created irrespective of whether the 
> corresponding task has anything to write there
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4927
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4927
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: mapred
>            Reporter: Devaraj Das
>            Assignee: Jothi Padmanabhan
>             Fix For: 0.21.0
>
>         Attachments: hadoop-4927-v1.patch, hadoop-4927-v2.patch, 
> hadoop-4927.patch
>
>
> When OutputFormat.getRecordWriter is invoked, a part file is created on the 
> output filesystem. But the created RecordWriter is not used until the 
> OutputCollector.collect call is made by the task (user's code). This results 
> in empty part files even if the OutputCollector.collect is never invoked by 
> the corresponding tasks.

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