hadoop-common-issues mailing list archives

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

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

Harsh J commented on HADOOP-7361:
---------------------------------

Uma,

Check out this TODO item in the new class CommandWithDestination (which encapsulates copyFromLocal
and put commands amongst others). Maybe just implementing this option to be processed should
now be sufficient, since I see the variable being used in the rest of the class.

{code:title=CommandWithDestination.java|borderStyle=solid}
  // TODO: commands should implement a -f to enable this
  protected void setOverwrite(boolean flag) {
    overwrite = flag;
  }
{code}

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