Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15982

Support configurable trash location

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • fs
    • None

    Description

      Currently some customer has users accounts that are functional ids (fid) to manage application and application data under the path /data/FID. These fid's also get a home directory under /user path. The user's home directories are limited with space quota 60 G. When these fids delete data, due to customer deletion policy they are placed in /user/<FID>/.Trash location and run over quota.

      For now they are increasing quotas for these functional users, but considering growing applications they would like the .Trash location to be configurable or something like  /trash/{userid} that is owned by the user.

      What should the configurable path look like to make this happen? For example, some thoughts may relate whether we want to configure it for per user or per cluster, etc.

      Here is current behavior:

      fs.TrashPolicyDefault: Moved: 'hdfs://ns1/user/hdfs/test/1.txt to trash at: hdfs://ns1/user/hdfs/.Trash/Current/user/hdfs/test/1.txt

      for path under encryption zone:

      fs.TrashPolicyDefault: Moved: 'hdfs://ns1/scale/2.txt' to trash at hdfs://ns1/scale/.Trash/hdfs/Current/scale/2.txt

       

      Attachments

        Activity

          People

            ghuangups George Huang
            ghuangups George Huang
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: