The Apache hadoop documentation is a bit misleading. If you are debugging problems, you can change the log level on the fly using the steps below. You must specify the package name, not the file name.
Example: for Namenode: hadoop daemonlog -setlevel lxv-centos-01: 50070 org.apache.hadoop.hdfs.server.namenode DEBUG
For Resourcemanager yne daemonlog -setlevel lxv-centos-01: 8088 org.apache.hadoop.yarn.server.resourcemanager DEBUG
When processes are restarted, the above setting disappears. This is a temporary fix for debugging problems.
source share