concept quota in category data

appears as: quotas, quota, quotas
Hadoop in Action

This is an excerpt from Manning's book Hadoop in Action.

In addition, like any system, a Hadoop cluster will change over time and you (or some administrator) will have to know how to maintain it to keep it running in good shape. This is particularly true for the HDFS filesystem. In sections 8.2 through 8.5, we cover various standard filesystem maintenance tasks, such as checking its health, setting permissions, quotas, and recovering deleted files (trash). Sections 8.6 through 8.10 will cover the bigger but rarer administrative tasks more specific to HDFS. These include adding/removing nodes (capacity) and recovery from NameNode failure. We end the chapter with a section on setting up a scheduler to manage multiple running jobs.

The setSpaceQuota command takes an argument for the number of bytes as each directory’s quota. The argument can have a suffix to represent unit. For example, 20g will mean 20 gigabytes, and 5t would mean 5 terabytes. All replicas count towards the quota.

To get the quotas associated with a directory as well as a count of the number of names and bytes it uses, use the HDFS shell command count with the -q option.