Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-27-2017 05:28 PM
Hi, I am trying to set the space quotas for directories in HDFS. I have read the article,
https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html, about how to set the space quota using command line. But still have two questions:
(1) Is there a way I can set the space quota in a configuration file? Or cluster configure file, e.g. .yml file?
(2) Is there a way I can set the space quota as the performance of total storage, while the total storage may change in future and the quota also changes (so I donot need change the space quota for each directory again)?
Thank you
Created 03-27-2017 06:31 PM
Hi @JJ Tsien,
1. We don't support setting quotas via a configuration file. Quotas must be set using the setQuota command issued by an administrator.
2. There is no way to specify quotas as a percentage of total storage either, sorry.
Created 03-27-2017 06:31 PM
Hi @JJ Tsien,
1. We don't support setting quotas via a configuration file. Quotas must be set using the setQuota command issued by an administrator.
2. There is no way to specify quotas as a percentage of total storage either, sorry.
Created 03-27-2017 06:33 PM
Hi @Arpit Agarwal, thank you for quick help!