Home > other >  Window on the eclipse connection HDFS does not respond but has no error, has been running
Window on the eclipse connection HDFS does not respond but has no error, has been running

Time:10-10


HDFS I use maven project to connect a virtual machine, has been unable to get the output stream, but it's not an error, the project has been running
Hope god can help me solve the problem

CodePudding user response:

To a figure to see

CodePudding user response:

Add a file under the main folder, log4j. The properties, and then add the following code below
Log4j: WARN No appenders could be found for logger (com.net help ease. Qa. Testng. TestngRetry).
Log4j: WARN both Please initialize the log4j system properly.

\ u4E00 \ u76F4 \ u90FD \ u6709 \ u4E0A \ u9762 \ u7684 \ u8B66 \ u544A \ uFF0C \ u56E0 \ u4E3A \ u6CA1 \ u6709 \ u5F71 \ u54CD \ u7A0B \ u5E8F \ u5C31 \ u6CA1 \ u7BA1 \ uFF0C \ u77E5 \ u9053 \ u662F \ u56E0 \ u4E3A \ u5C11 \ u4E86log4j properties \ u7684 \ u914D \ u7F6E \ u95EE \ u9898 \ uFF0C \ u56E0 \ u4E3A \ u662F \ u65E5 \ u5FD7 \ u6CA1 \ u5927 \ u7BA1 \ u3002 \ u6700 \ u8FD1 \ u53D1 \ u73B0 \ uFF0C \ u770B \ u7740 \ u5B9E \ u5728 \ u4E0D \ u723D \ uFF0C \ u51B3 \ u5B9A \ u5904 \ u7406

\ u4E0A \ u65B9 \ u6848 \ u5982 \ u4E0B \ uFF1A

Log4j: WARN both Please initialize the log4j system properly.

\ u539F \ u56E0 \ u662F \ u6CA1 \ u6709 \ u5BF9log4j \ u8FD9 \ u4E2Ajar \ u8FDB \ u884C \ u6587 \ u4EF6 \ u914D \ u7F6E \ u3002

\ u5C06log4j properties \ u6587 \ u4EF6 \ u653E \ u5728src \ u76EE \ u5F55 \ u4E0B \ u5C31 \ u53EF \ u4EE5 \ u4E86 \ u3002

(\ u6700 \ u5F00 \ u59CB \ u6211 \ u653E \ u7684 \ u662F \ u6839 \ u76EE \ u5F55 \ u4E0B \ uFF0C \ u6CA1 \ u592A \ u6CE8 \ u610F \ uFF0C)

\ u6B63 \ u786E \ u4F4D \ u7F6E \ u5982 \ u56FE \ uFF1A \ u6211 \ u662Fmaven \ u9879 \ u76EE





\ u518D \ u8BF4 \ u4E0B \ u914D \ u7F6E \ u6587 \ u4EF6 \ u5185 \ u5BB9 \ uFF1A

\ u4F8B \ u5982log4j properties \ u6587 \ u4EF6 \ u5185 \ u5BB9 \ u5982 \ u4E0B \ uFF1A

\ u590D \ u5236 \ u4EE3 \ u7801
Log4j rootLogger=debug, stdout, R

Log4j. Appender. Stdout=org. Apache. Log4j. ConsoleAppender
Log4j. Appender. Stdout. Layout=org.. Apache log4j. PatternLayout

Log4j. Appender. Stdout. Layout. ConversionPattern=% 5 p - % m % n

Log4j. Appender. R=org. Apache. Log4j. RollingFileAppender
Log4j. Appender. R.F ile=firestorm. Log

Log4j. Appender. R.M axFileSize=100 KB
Log4j. Appender. R.M axBackupIndex=1

Log4j. Appender. R.l ayout=org.. Apache log4j. PatternLayout
Log4j. Appender. R.l ayout. ConversionPattern=% p % c - t % % m % n

Log4j.logger.com.codefutures=DEBUG
Then you should be able to run, will give you a specific error, specific how to solve what is submitted to the wrong

  • Related