Support Questions
Find answers, ask questions, and share your expertise

How to turn ON debugging for resource manger from Ambari ?

Solved Go to solution
Highlighted

How to turn ON debugging for resource manger from Ambari ?

Explorer
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to turn ON debugging for resource manger from Ambari ?

Mentor

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.

View solution in original post

5 REPLIES 5
Highlighted

Re: How to turn ON debugging for resource manger from Ambari ?

Explorer

Forgot to mention.we are using Ambari 1.7 version!

Highlighted

Re: How to turn ON debugging for resource manger from Ambari ?

Mentor

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.

View solution in original post

Highlighted

Re: How to turn ON debugging for resource manger from Ambari ?

Mentor

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
Highlighted

Re: How to turn ON debugging for resource manger from Ambari ?

Mentor

@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
Highlighted

Re: How to turn ON debugging for resource manger from Ambari ?

Explorer

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.

Don't have an account?