In all adjustments you can do in log4j (and there’s a lot), you may want to adjust the verbosity level of a particular class.
For example, I wanted to decrease verbosity of CapacityScheduler because I had the ResourceManager log full of
2015-12-15 12:11:06,667 INFO capacity.CapacityScheduler (CapacityScheduler.java:completedContainer(1190)) - Null container completed...
2015-12-15 12:11:06,667 INFO capacity.CapacityScheduler (CapacityScheduler.java:completedContainer(1190)) - Null container completed...
2015-12-15 12:11:06,667 INFO capacity.CapacityScheduler (CapacityScheduler.java:completedContainer(1190)) - Null container completed...
2015-12-15 12:11:06,668 INFO capacity.CapacityScheduler (CapacityScheduler.java:completedContainer(1190)) - Null container completed...
I first found the CapacityScheduler “full name” length (meaning with the package) referenced under :
log4j.logger.org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler=WARN
Restarted ResourceManager, and voilà!
The org.apache.log4j.Level levels. You can also define your custom levels by sub-classing the Level class.