How to stop INFO messages displaying on spark console?

后端 未结 20 3352
广开言路
广开言路 2020-11-22 13:40

I\'d like to stop various messages that are coming on spark shell.

I tried to edit the log4j.properties file in order to stop these message.

Her

20条回答
  •  余生分开走
    2020-11-22 14:34

    You set disable the Logs by setting its level to OFF as follows:

    Logger.getLogger("org").setLevel(Level.OFF);
    Logger.getLogger("akka").setLevel(Level.OFF);
    

    or edit log file and set log level to off by just changing the following property:

    log4j.rootCategory=OFF, console
    

提交回复
热议问题