Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

How to configure YARN to limit YARN applications' storage consumption


Hello Team,


We had a situation where one application consumed over 1 TB of disk space which eventually flooded the disk space. We had to kill this application for freeing the space on this disk. Due to this not happening in the future, we want to limit the storage consumption of the YARN application. Could you please share how to configure this?


Best Regards


Rising Star

Does it happen to be a MapReduce job? After killing the job; did you clean up the disk space manually?


You can implement quotas to restrict disk space usage

Expert Contributor

Hi, this is most likely due to some long running jobs like Spark Streaming, which will continuously generate logs while they are running.


We need to modify the log level on the application side. Still, taking Spark Streaming as example, we can add rolling appender in the for the application, so the job will rotate the logs with limited size you set in the log4j file.

For details steps please refer:


Regarding other types of jobs it's similar, we need to let application team tune the log level so they will not generate indefinite amount of logs.


Hello @ywu Thank you for the links. This one helps. So, if I understand correctly, there is not much we can do to control the size of the logs from the YARN but from the application itself since the application log files will continue to grow until the disk gets filled and the NodeManager goes into the decommissioned state, is it right?