hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J Chouraria (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-1608) Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options
Date Sat, 28 May 2011 05:33:47 GMT

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

Harsh J Chouraria commented on HDFS-1608:
-----------------------------------------

@OP - Thanks a ton for the patch!

Could this issue be moved to the HADOOP project since the patch belongs there? Also, best
to merge both patches into a single one.

> Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options
> --------------------------------------------------------------------------------------
>
>                 Key: HDFS-1608
>                 URL: https://issues.apache.org/jira/browse/HDFS-1608
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client
>    Affects Versions: 0.20.1, 0.20.2
>            Reporter: Uma Maheswara Rao G
>            Priority: Minor
>         Attachments: HDFS-1608-src.patch, HDFS-1608-test.patch
>
>
> FileSystem has the API 
> *public void copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst)*
>      
>                          
> This API provides overwrite option. But the mapping command line doesn't have this option.
To maintain the consistency and better usage  the command line option also can support the
overwrite option like to put the files forcefully. ( put [-f] <srcpath> <dstPath>)
and also for copyFromLocal command line option.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message