Setting HDFS Quotas
Minimum Required Role: Cluster Administrator (also provided by Full Administrator)
- From the HDFS service page, select the File Browser tab.
- Browse the file system to find the directory for which you want to set quotas.
- Click the directory name so that it appears in the gray panel above the listing of its contents and in the detail section to the right of the File Browser table.
- Click the Edit Quota button for the directory. A Manage Quota pop-up displays, where you can set file count or disk space limits for the directory you have selected.
- When you have set the limits you want, click OK.
About file count limits
- The file count quota is a limit on the number of file and directory names in the directory configured.
- A directory counts against its own quota, so a quota of 1 forces the directory to remain empty.
- File counts are based on the intended replication factor for the files; changing the replication factor for a file will credit or debit quotas.
About disk space limits
- The space quota is a hard limit on the number of bytes used by files in the tree rooted at the directory being configured.
- Each replica of a block counts against the quota.
- The disk space quota calculation takes replication into account, so it uses the replicated size of each file, not the user-facing size.
- The disk space quota calculation includes open files (files presently being written), as well as files already written.
- Block allocations for files being written will fail if the quota would not allow a full block to be written.