How can one set space quota in Hadoop (HDFS) directory?
Answer Posted / 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 View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category