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

DistCp to add -useTrash to move deleted files to Trash

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: distcp
    • Labels:
      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

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              shenyinjie Shen Yinjie Assign to me
              Reporter:
              k.shaposhnikov@gmail.com Konstantin Shaposhnikov

              Dates

              • Created:
                Updated:

                Issue deployment