hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7361) Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options
Date Mon, 11 Jul 2011 11:15:59 GMT

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

Hudson commented on HADOOP-7361:
--------------------------------

Integrated in Hadoop-Common-trunk #743 (See [https://builds.apache.org/job/Hadoop-Common-trunk/743/])
    HADOOP-7361. Provide an option, -overwrite/-f, in put and copyFromLocal shell commands.
 Contributed by Uma Maheswara Rao G

szetszwo : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1144858
Files : 
* /hadoop/common/trunk/common/CHANGES.txt
* /hadoop/common/trunk/common/src/java/org/apache/hadoop/fs/shell/CommandWithDestination.java
* /hadoop/common/trunk/common/src/java/org/apache/hadoop/fs/shell/CopyCommands.java


> Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options
> --------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7361
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7361
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 0.20.1, 0.23.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7361-src.patch, 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