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

Create API and command-line argument to get quota and quota usage without detailed content summary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • fs
    • None
    • Reviewed

    Description

      On large directory structures it takes significant time to iterate through the file and directory counts recursively to get a complete ContentSummary.
      When you want to just check for the quota on a higher level directory it would be good to have an option to skip the file and directory counts.

      Moreover, currently one can only check the quota if you have access to all the directories underneath. For example, if I have a large home directory under /user/joep and I host some files for another user in a sub-directory, the moment they create an unreadable sub-directory under my home I can no longer check what my quota is. Understood that I cannot check the current file counts unless I can iterate through all the usage, but for administrative purposes it is nice to be able to get the current quota setting on a directory without the need to iterate through and run into permission issues on sub-directories.

      Attachments

        1. HDFS-8898-branch-2.patch
          91 kB
          Ming Ma
        2. HDFS-8898-6.patch
          95 kB
          Ming Ma
        3. HDFS-8898-5.patch
          95 kB
          Ming Ma
        4. HDFS-8898-4.patch
          94 kB
          Ming Ma
        5. HDFS-8898-3.patch
          91 kB
          Ming Ma
        6. HDFS-8898-2.patch
          88 kB
          Ming Ma
        7. HDFS-8898.patch
          33 kB
          Ming Ma

        Issue Links

          Activity

            People

              mingma Ming Ma
              jrottinghuis Joep Rottinghuis
              Votes:
              0 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: