Created 09-08-2016 09:14 PM
Created 09-09-2016 01:59 AM
It's been awhile since ive seen Ambari 1.7 but if you have access to configuration page for yarn-env.sh, you should be able to follow the instructions here http://stackoverflow.com/questions/27853974/how-to-set-debug-log-level-for-resourcemanager. I strongly recommend upgrading HDP and Ambari to 2.x as 1.7 is no longer supported or maintained.
Created 09-08-2016 09:15 PM
Forgot to mention.we are using Ambari 1.7 version!
Created 09-09-2016 01:59 AM
It's been awhile since ive seen Ambari 1.7 but if you have access to configuration page for yarn-env.sh, you should be able to follow the instructions here http://stackoverflow.com/questions/27853974/how-to-set-debug-log-level-for-resourcemanager. I strongly recommend upgrading HDP and Ambari to 2.x as 1.7 is no longer supported or maintained.
Created 09-09-2016 02:08 AM
you could try daemonlog command. In that case, Ambari version is irrelevant. I don't know your HDP version but I checked whether this command is available in earlier Hadoop and it's available at least in 2.4.x.
http://hadoop.apache.org/docs/r2.7.3/hadoop-yarn/hadoop-yarn-site/YarnCommands.html
Get/Set the log level for a Log identified by a qualified class name in the daemon.
Example: $
bin/yarn daemonlog -setlevel 127.0.0.1:8088 org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl DEBUG
Created 09-09-2016 03:28 PM
@jigar.patel I stand corrected, you do not need Ambari to set DEBUG on RM, here's the command
vagrant@u1401:~$ yarn daemonlog -getlevel u1402.ambari.apache.org:8088 org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl Connecting to http://u1402.ambari.apache.org:8088/logLevel?log=org.apache.hadoop.yarn.server.resourcemanager.rmapp... Submitted Log Name: org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl Log Class: org.apache.commons.logging.impl.Log4JLogger Effective Level: INFO vagrant@u1401:~$ yarn daemonlog -setlevel u1402.ambari.apache.org:8088 org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl DEBUG Connecting to http://u1402.ambari.apache.org:8088/logLevel?log=org.apache.hadoop.yarn.server.resourcemanager.rmapp... Submitted Log Name: org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl Log Class: org.apache.commons.logging.impl.Log4JLogger Submitted Level: DEBUG Setting Level to DEBUG ... Effective Level: DEBUG
Created 09-09-2016 04:51 PM
Thanks @Artem Ervits.It worked! we were using HDP2.2
$hadoop daemonlog -setlevel <resource mgr host :8088> org.apache.hadoop.yarn.server.resourcemanger DEBUG
We used above command to debug on and it did worked.