hadooplogginglog4jhadoop-yarnresourcemanager

How to set DEBUG log level for ResourceManager?


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?


Solution

  • Quoting Setting debug log level for individual daemons:

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