Is there a way to suppress Spark Messages during execution?

3,510 views
Skip to first unread message

angshu rai

unread,
Dec 31, 2012, 11:34:01 PM12/31/12
to spark...@googlegroups.com
Hi,
I have a few optimization jobs that run for many iterations, as a result I see a lot of Spark "INFO" messages coming up on the screen which has unnecessary IO overhead.

Is there a way to suppress these messages and get them only if an Error occurs? Something like a quiet mode operation?

It would be great to know.
Thanks!
Angshu

Josh Rosen

unread,
Dec 31, 2012, 11:38:42 PM12/31/12
to spark...@googlegroups.com
Spark uses log4j for its logging, so you can provide a custom log4j.properties file that changes Spark's logging threshold to WARNING:


- Josh

angshu rai

unread,
Dec 31, 2012, 11:56:20 PM12/31/12
to spark...@googlegroups.com
Thanks Josh, I already have the log4j.properties file in the conf directory which is basically the copy of the template, so it should be showing only warnings but it is not.

Is there a place where I need to mention the path of this properties file so that the mandates are taken from there?

-Angshu

Matei Zaharia

unread,
Jan 1, 2013, 12:23:18 AM1/1/13
to spark...@googlegroups.com
Did you actually modify the template to only show warnings? It shows INFO by default. Change the INFO at the top to WARNING.

Matei

angshu rai

unread,
Jan 1, 2013, 1:20:45 AM1/1/13
to spark...@googlegroups.com
Ok, had to edit the properties file a bit. Its much cleaner now.

Thanks Matei, Josh!
-Angshu
Reply all
Reply to author
Forward
0 new messages