--Name Quota
hadoop fs -mkdir /user/ubuntu/quotatest
hdfs dfsadmin -setQuota 5 /user/ubuntu/quotatest
hadoop fs -count -q /user/ubuntu/quotatest
hadoop fs -touchz /user/ubuntu/quotatest/test1
hadoop fs -touchz /user/ubuntu/quotatest/test2
hadoop fs -touchz /user/ubuntu/quotatest/test3
hadoop fs -touchz /user/ubuntu/quotatest/test4
hadoop fs -touchz /user/ubuntu/quotatest/test5
hadoop fs -rm /user/ubuntu/quotatest/test4
hdfs dfsadmin -clrQuota /user/ubuntu/quotatest
hadoop fs -count -q /user/ubuntu/quotatest
--Space Quota
hdfs dfsadmin -setSpaceQuota 300k /user/ubuntu/quotatest
hadoop fs -count -q /user/ubuntu/quotatest
hadoop fs -copyFromLocal hdfs-site.xml /user/ubuntu/quotatest
hdfs dfsadmin -clrSpaceQuota /user/ubuntu/quotatest