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?
Asked
Active
Viewed 9,032 times
4

Jacek Laskowski
- 72,696
- 27
- 242
- 420

hakunami
- 2,351
- 4
- 31
- 50
5 Answers
2
Quoting Setting debug log level for individual daemons:
Add
-Dhadoop.root.logger=DEBUG
to something likeHADOOP_resourcemanager_opts
inyarn-env.sh

Jacek Laskowski
- 72,696
- 27
- 242
- 420

Raju Shikha
- 56
- 3
0
What worked for me is to add in yarn-env.sh
YARN_OPTS="$YARN_OPTS -Dhadoop.root.logger=${YARN_ROOT_LOGGER:-DEBUG,console}"
YARN_OPTS="$YARN_OPTS -Dyarn.root.logger=${YARN_ROOT_LOGGER:-DEBUG,console}"

jmarhuen
- 91
- 1
- 2
0
For YARN daemons started using $HADOOP_HOME/sbin/yarn-daemon.sh
, you should update the YARN_ROOT_LOGGER
log level in that script.

erwaman
- 3,307
- 3
- 28
- 29
0
Try with. It should enabled yarn level debug logging.
export YARN_ROOT_LOGGER=DEBUG,RFA

shailesh gupta
- 427
- 1
- 5
- 14