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 replacing "INFO" with "WARN" everywhere. No result.
Next, I tried to give Hadoop UNIX commands (in accordance with http://hadoop.apache.org/common/docs/current/commands_manual.html#daemonlog):
$ hadoop daemonlog -setlevel
Is it possible that one actually has to alter the SOURCE CODE to make it work? Logging is often quite simple to control, in most cases a slight adjustment of the logging properties usually does it...
I rather use
HADOOP_ROOT_LOGGER=WARN,DRFA
in hadoop-env.sh
or you can use hadoop.root.logger in log4j.properties
DRFA will allow the logs to go into the File Appender rather than Console -> System.err/out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With