How to stop INFO messages displaying on spark console?

后端 未结 20 3448
广开言路
广开言路 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:25

    If anyone else is stuck on this,

    nothing of the above worked for me. I had to remove

    implementation group: "ch.qos.logback", name: "logback-classic", version: "1.2.3"
    implementation group: 'com.typesafe.scala-logging', name: "scala-logging_$scalaVersion", version: '3.9.2'
    

    from my build.gradle for the logs to disappear. TLDR: Don't import any other logging frameworks, you should be fine just using org.apache.log4j.Logger

提交回复
热议问题