Apache > Hadoop > Core
 

Name Space Quotas Administrator Guide

The Hadoop Distributed File System (HDFS) allows the administrator to set quotas on individual directories. Newly created directories have no associated quota. The largest quota is Long.Max_Value. A quota of one forces a directory to remain empty.

The directory quota is a hard limit on the number of names in the tree rooted at that directory. File and directory creations fault if the quota would be exceeded. Quotas stick to renamed directories; the rename operation faults if operation would result in a quota violation. The attempt to set a quota faults if the directory would be in violation of the new quota.

Quotas are persistent with the fsimage. When starting, if the fsimage is immediately in violation of a quota (perhaps the fsimage was surreptitiously modified), the startup operation fails with an error report. Setting or removing a quota creates a journal entry.

The following new commands or new options are added to support quotas. The first two are administration commands.