Help Center/ MapReduce Service/ Developer Guide (LTS)/ Manager Management Development Guide/ More Information/ FAQ/ An Operation Fails and "log4j:WARN No appenders could be found for logger(basicAuth.Main)" Is Displayed in Logs
Updated on 2024-08-10 GMT+08:00

An Operation Fails and "log4j:WARN No appenders could be found for logger(basicAuth.Main)" Is Displayed in Logs

Question

An application execution fails. Figure 1-6 shows the log information.

Figure 1 Log indicating operation failure

Answer

Check whether the compiled log4j.properties file exists in the bin directory of the project. If it does not, add the compilation path.

  1. In IntelliJ IDEA, choose File > Project Structure > Modules, and then add the conf folder that contains log4j.properties and UserInfo.properties as Source Folders.
  2. Compile the file again.