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 |
Explain the hdfs architecture and list the various hdfs daemons in hdfs cluster?
Why HDFS stores data using commodity hardware despite the higher chance of failures?
Define hadoop archives? What is the command for archiving a group of files in hdfs.
How much Metadata will be created on NameNode in Hadoop?
What is secondary namenode? Is it a substitute or back up node for the namenode?
Why is Reading done in parallel and writing is not in HDFS?
Explain how indexing is done in hdfs?
When NameNode enter in Safe Mode?
Can you define a block and block scanner in hdfs?
How does hdfs get a good throughput?
Explain the difference between mapreduce engine and hdfs cluster?
What is the difference between an hdfs block and input split?
Apache Hadoop (394)
MapReduce (354)
Apache Hive (345)
Apache Pig (225)
Apache Spark (991)
Apache HBase (164)
Apache Flume (95)
Apache Impala (72)
Apache Cassandra (392)
Apache Mahout (35)
Apache Sqoop (82)
Apache ZooKeeper (65)
Apache Ambari (93)
Apache HCatalog (34)
Apache HDFS Hadoop Distributed File System (214)
Apache Kafka (189)
Apache Avro (26)
Apache Presto (15)
Apache Tajo (26)
Hadoop General (407)