The idea of writing Java code at the beginning of a few days, feeling very cool, so decided to abandon eclipse
---------------------------------------above is an off-topic--------
Today, when running a program, as shown in the problem, find the information is due to the log4j this log information print module configuration information is not given, the simple is that someone else should have a place to store the log printing information, but you do not give others, so on the error bar
Workaround:
Create a text file named Log4j.properties in the SRC directory of your project, remembering that it is a text file, not a folder
Then add the following content to your text file:
for testing:optionally with log file #log4j. Rootlogger=debug,appender log4j.rootlogger= Info,appender #log4j. Rootlogger=error,appender #\u8f93\u51fa\u5230\u63a7\u5236\u53f0 Log4j.appender.appender=org.apache.log4j.ConsoleAppender #\u6837\u5f0f\u4e3attcclayout Log4j.appender.appender.layout=org.apache.log4j.ttcclayout
About Log4j:warn No Appenders could is found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory). Questions