You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2014/01/24 02:07:39 UTC

[jira] [Commented] (HDFS-5825) Use FileUtils.copyFile() to implement DFSTestUtils.copyFile()

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

Arpit Agarwal commented on HDFS-5825:
-------------------------------------

+1 (pending Jenkins).

> Use FileUtils.copyFile() to implement DFSTestUtils.copyFile()
> -------------------------------------------------------------
>
>                 Key: HDFS-5825
>                 URL: https://issues.apache.org/jira/browse/HDFS-5825
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>            Priority: Minor
>         Attachments: HDFS-5825.000.patch
>
>
> {{DFSTestUtils.copyFile()}} is implemented by copying data through FileInputStream / FileOutputStream. Apache Common IO provides {{FileUtils.copyFile()}}. It uses FileChannel which is more efficient.
> This jira proposes to implement {{DFSTestUtils.copyFile()}} using {{FileUtils.copyFile()}}.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)