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

Handling of Trash with quota

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.20.1
    • fs
    • None
    • Reviewed
    • Provide a new option to rm and rmr, -skipTrash, which will immediately delete the files specified, rather than moving them to the trash.

    Description

      Currently with quota turned on, user cannot call '-rmr' on large directory that causes over quota.

      [knoguchi src]$ hadoop dfs -rmr /tmp/net2
      rmr: Failed to move to trash: hdfs://abc.def.com/tmp/net2
      [knoguchi src]$ hadoop dfs -mv /tmp/net2 /user/knoguchi/.Trash/Current
      mv: org.apache.hadoop.hdfs.protocol.QuotaExceededException: The quota of /user/knoguchi is exceeded: namespace
      quota=37500 file count=37757, diskspace quota=-1 diskspace=1991250043353
      

      Besides from error message being unfriendly, how should this be handled?

      Attachments

        1. javac_warnings_diff.txt
          17 kB
          Jakob Homan
        2. HADOOP-6080-v20.patch
          9 kB
          Jakob Homan
        3. HADOOP-6080.patch
          9 kB
          Jakob Homan

        Issue Links

          Activity

            People

              jghoman Jakob Homan
              knoguchi Koji Noguchi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: