How to set DEBUG log level for ResourceManager?

hakunami picture hakunami · Jan 9, 2015 · Viewed 7.2k times · Source

I am doing some change to Yarn source code. I have changed hadoop.root.logger=DEBUG,console to DEBUG in ${HADOOP_HOME}/etc/hadoop/log4j.properties. I can get DEBUG information for Application Master, but I can't find any DEBUG information outputted in ${HADOOP_HOME}/logs/yarn-yar-resourcemanager-hostname.log. Is there any other place I should change to trigger DEBUG level for resourcemanager?

Answer

Raju Shikha picture Raju Shikha · Jan 9, 2015

Quoting Setting debug log level for individual daemons:

Add -Dhadoop.root.logger=DEBUG to something like HADOOP_resourcemanager_opts in yarn-env.sh