[ 
https://issues.apache.org/jira/browse/ORC-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16137228#comment-16137228
 ] 

ASF GitHub Bot commented on ORC-231:
------------------------------------

GitHub user ajayyadava opened a pull request:

    https://github.com/apache/orc/pull/162

    ORC-231 Configurable capability to overwrite the file if it exists.

    Added a boolean flag to configure the overwrite behavior. This change is 
backward compatible as the default value of the flag is false.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ajayyadava/orc 231

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/orc/pull/162.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #162
    
----
commit 1f4a65c1280e321c71ff8f1118768d52b5038933
Author: Ajay Yadava <[email protected]>
Date:   2017-08-22T06:49:54Z

    ORC-231 Configurable capability to overwrite the file if it exists.
    
    The default value of this flag is false and this change is backward
    compatible.

----


> Having configurable capability to overwrite the file with the same name 
> already exists 
> ---------------------------------------------------------------------------------------
>
>                 Key: ORC-231
>                 URL: https://issues.apache.org/jira/browse/ORC-231
>             Project: ORC
>          Issue Type: Improvement
>            Reporter: piyush mukati
>
> Having configurable capability to overwrite the file with the same name 
> already exists (Line no 90 in org.apache.orc.impl.PhysicalFsWriter). 
> Use Case:
> I am using OrcOutputFormat with MultipleOutput in my MapReduce job.
> Since MultipleOutput does not uses OutputCommitter so there are half/corrupt 
> files are left from the failed reducers.
> Here the files with the same name will be overwritten by the retry attempt 
> and it will guarantee correct result from a successful job.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to