Setting the logging level in Hadoop to WARN

后端 未结 4 449
一生所求
一生所求 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 09:06

    To change the log levels dynamically, so that restart of the daemon is not required use hadoop daemonlog utility.

        hadoop daemonlog -setlevel hostname:port className logLevel
    

    For example to change the log level of datanode logs to WARN.

        hadoop daemonlog -setlevel hostname:50075 org.apache.hadoop.hdfs.server.datanode.DataNode WARN
    

提交回复
热议问题