Space Quotas in Hadoop HDFS directory
A hard limit on the number of bytes which is used by files in the tree rooted at that directory is what we call the space quota. If the quota would not allow a full block to be written, block allocations fail. Each replica of a block counts against the quota. Moreover, the rename operation fails if the operation would result in a quota violation since the Quotas stick with renamed directories. However, a newly created directory has no associated quota. No blocks can be added to the files since a quota of zero still permits files to be created.
In addition, with the fsimage, quotas are persistent. a warning is printed for each of such violations if the fsimage is immediately in violation of a quota when starting. Removing or setting a quota creates a journal entry.