You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Konstantin Shaposhnikov (JIRA)" <ji...@apache.org> on 2016/03/07 07:08:40 UTC

[jira] [Created] (HDFS-9913) DispCp doesn't use Trash with -delete option

Konstantin Shaposhnikov created HDFS-9913:
---------------------------------------------

             Summary: DispCp doesn't use Trash with -delete option
                 Key: HDFS-9913
                 URL: https://issues.apache.org/jira/browse/HDFS-9913
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: distcp
    Affects Versions: 2.7.2
            Reporter: Konstantin Shaposhnikov


Documentation for DistCp -delete option says (http://hadoop.apache.org/docs/current/hadoop-distcp/DistCp.html):

| The deletion is done by FS Shell. So the trash will be used, if it is enable.

However it seems to be no longer the case. The latest source code (https://svn.apache.org/repos/asf/hadoop/common/trunk/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java) uses `FileSystem.delete` and trash options seems to be not applied.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)