You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Ron Ayoub <ro...@live.com> on 2014/12/04 20:18:26 UTC
how do you turn off info logging when running in local mode
I have not yet gotten to the point of running standalone. In my case I'm still working on the initial product and I'm running directly in Eclipse and I've compiled using the Spark maven project since the downloadable spark binaries require Hadoop. With that said, I'm running fine and I have things working but the info logging is so verbose in Eclipse that my own console logging ultimately gets drowned out. Is there a programmatic way to tell Spark to stop logging so much to the console?
Thanks.
Re: how do you turn off info logging when running in local mode
Posted by Akhil Das <ak...@sigmoidanalytics.com>.
Yes, there is away. Just add the following piece of code before creating
the SparkContext.
import org.apache.log4j.Logger
import org.apache.log4j.Level
Logger.getLogger("org").setLevel(Level.OFF)
Logger.getLogger("akka").setLevel(Level.OFF)
Thanks
Best Regards
On Fri, Dec 5, 2014 at 12:48 AM, Ron Ayoub <ro...@live.com> wrote:
> I have not yet gotten to the point of running standalone. In my case I'm
> still working on the initial product and I'm running directly in Eclipse
> and I've compiled using the Spark maven project since the downloadable
> spark binaries require Hadoop. With that said, I'm running fine and I have
> things working but the info logging is so verbose in Eclipse that my own
> console logging ultimately gets drowned out. Is there a programmatic way to
> tell Spark to stop logging so much to the console?
>
> Thanks.
>