In the hadoop-0.11.1-core.jar, there is already a log4j.properties file. I
am using commons-logging and log4j now, so I tried to remove the
commons-logging.properties and log4j.properties files out of the jar, and
put them into the classpath. But if I did that, the application always gives
me a warning:
log4j:WARN No appenders could be found for logger (
log4j:WARN Please initialize the log4j system properly.
It seems that I have to keep these two properties files in the jar, and I
really need to override the log level to make my own program printing more
info, but meanwhile I also want to keep the hadoop's log level as INFO. In
the other words, I have only interest on my own program.
So what should I do?