How can one set space quota in Hadoop (HDFS) directory?



How can one set space quota in Hadoop (HDFS) directory?..

Answer / Aksh Vardhan

Space quotas can be set on a per-directory basis using the 'setquota' command. To do this, you first need to enable the Quota system by setting the following configuration properties in hdfs-site.xml: dfs.quotas.enabled=true, dfs.namenode.quotaprefs.root=hdfs://namenode/quota, and set the quota for a specific directory using the command: hadoop dfs -setquota <directory> <hardlimit(bytes)> <softlimit(bytes)>. If only one limit is provided, it will be considered as both hard and soft limits.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache HDFS Hadoop Distributed File System Interview Questions

Replication causes data redundancy then why is pursued in hdfs?

1 Answers  


How to Delete directory and files recursively from HDFS?

1 Answers  


How to keep files in HDFS?

1 Answers  


What is the difference between namenode, backup node and checkpoint namenode?

1 Answers  


File permissions in HDFS?

1 Answers  


Who divides the file into Block while storing inside hdfs in hadoop?

1 Answers  


Why rack awareness algorithm is used in hadoop?

1 Answers  


What is a difference between an input split and hdfs block?

1 Answers  


What do you mean by metadata in Hadoop?

1 Answers  


What is throughput? How does hdfs provides good throughput?

1 Answers  


Can you change the block size of hdfs files?

1 Answers  


Explain the key features of hdfs?

1 Answers  


Categories