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

Trash Support for deletion in HDFS encryption zone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • encryption
    • None
    • Reviewed
    • Hide
      Add Trash support for deleting files within encryption zones. Deleted files will remain encrypted and they will be moved to a “.Trash” subdirectory under the root of the encryption zone, prefixed by $USER/current. Checkpoint and expunge continue to work like the existing Trash.
      Show
      Add Trash support for deleting files within encryption zones. Deleted files will remain encrypted and they will be moved to a “.Trash” subdirectory under the root of the encryption zone, prefixed by $USER/current. Checkpoint and expunge continue to work like the existing Trash.

    Description

      Currently, "Soft Delete" is only supported if the whole encryption zone is deleted. If you delete files whinin the zone with trash feature enabled, you will get error similar to the following

      rm: Failed to move to trash: hdfs://HW11217.local:9000/z1_1/startnn.sh: /z1_1/startnn.sh can't be moved from an encryption zone.
      

      This JIRA is proposed to support trash for deletion of files within encryption zone.

      Attachments

        1. HDFS-8831-10152015.pdf
          218 kB
          Xiaoyu Yao
        2. HDFS-8831.05.patch
          28 kB
          Xiaoyu Yao
        3. HDFS-8831.04.patch
          27 kB
          Xiaoyu Yao
        4. HDFS-8831.03.patch
          27 kB
          Xiaoyu Yao
        5. HDFS-8831.02.patch
          26 kB
          Xiaoyu Yao
        6. HDFS-8831.01.patch
          25 kB
          Xiaoyu Yao
        7. HDFS-8831.00.patch
          25 kB
          Xiaoyu Yao

        Issue Links

          Activity

            People

              xyao Xiaoyu Yao
              xyao Xiaoyu Yao
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: