Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9913

DistCp to add -useTrash to move deleted files to Trash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • None
    • distcp
    • None

    Description

      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.

      Attachments

        1. HDFS-9913_1.patch
          21 kB
          Shen Yinjie
        2. HDFS-9913_2.patch
          27 kB
          Shen Yinjie

        Activity

          People

            shenyinjie Shen Yinjie
            k.shaposhnikov@gmail.com Konstantin Shaposhnikov
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated: