Setting the logging level in Hadoop to WARN

后端 未结 4 414
一生所求
一生所求 2021-01-05 08:38

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 replac

4条回答
  •  天涯浪人
    2021-01-05 08:53

    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.

提交回复
热议问题