hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-3939) DistCp should support an option for deleting non-existing files.
Date Tue, 12 Aug 2008 22:07:44 GMT

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

Tsz Wo (Nicholas), SZE commented on HADOOP-3939:
------------------------------------------------

> Can we use Trash if it's enabled ? 

+1  I think this is a good idea.  It can be done by re-using the codes in FsShell.

> DistCp should support an option for deleting non-existing files.
> ----------------------------------------------------------------
>
>                 Key: HADOOP-3939
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3939
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: tools/distcp
>            Reporter: Tsz Wo (Nicholas), SZE
>
> One use case of DistCp is to sync two directories.  Currently, DistCp has an -update
option for overwriting dst files if src is different from dst.  However, it is not enough
for sync.  If there are some files in dst but not exist in src, there is no easy way to delete
them.  We should add a new option, say -delete, so that DistCp will delete the non-existing
in dst.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message