Search code examples
log4japache-spark

How to get rid of "Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties" message?


I am trying to suppress the message

Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties

when i run my Spark app. I've redirected the INFO messages successfully, however this message keeps on showing up. Any ideas would be greatly appreciated.


Solution

  • Okay, So I've figured out a way to do this. So basically, I had my own log4j.xml initially, that was being used, and hence we were seeing this property. Once I had my own "log4j.properties" file, this message went away.