Setting the logging level in Hadoop to WARN

后端 未结 4 410
一生所求
一生所求 2021-01-05 08:38

I\'ve tried numerous ways of setting the logging level in Hadoop to WARN, but have failed each time. Firstly, I tried to configure the log4j.properties file by simply replac

4条回答
  •  再見小時候
    2021-01-05 08:49

    Apache hadoop documentation is a bit misleading. If you are debugging issues you can change the log level on the fly using the below steps. You should mention the package name rather than the file name.

    Example: For Namenode: hadoop daemonlog -setlevel lxv-centos-01:50070 org.apache.hadoop.hdfs.server.namenode DEBUG

    For Resourcemanager yarn daemonlog -setlevel lxv-centos-01:8088 org.apache.hadoop.yarn.server.resourcemanager DEBUG

    The above setting goes away when you restart the processes. This is a temporary solution for debugging issues.

提交回复
热议问题