0

When I run spark-submit job with scala, I can see a lot of status messages in console.

But I would like to see only my prints. Can I put any parameter in order not to see these messages?

030
  • 10,842
  • 12
  • 78
  • 123

1 Answers1

3

This should do the trick for the most part. Put it inside the code:

import org.apache.log4j.{Level, Logger}
Logger.getLogger("org").setLevel(Level.WARN)
Logger.getLogger("akka").setLevel(Level.WARN)

Or this in conf/log4j.properties:

log4j.rootCategory=WARN, console
sebszyller
  • 853
  • 4
  • 10