spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Asim Jalis <asimja...@gmail.com>
Subject Re: disable log4j for spark-shell
Date Wed, 07 Jan 2015 13:19:59 GMT
Another option is to make a copy of log4j.properties in the current
directory where you start spark-shell from, and modify
"log4j.rootCategory=INFO,
console" to "log4j.rootCategory=ERROR, console". Then start the shell.

On Wed, Jan 7, 2015 at 3:39 AM, Akhil <akhil@sigmoidanalytics.com> wrote:

> Edit your conf/log4j.properties file and Change the following line:
>
>        log4j.rootCategory=INFO, console
>
> to
>
>         log4j.rootCategory=ERROR, console
>
> Another approach would be to :
>
> Fireup spark-shell and type in the following:
>
>     import org.apache.log4j.Logger
>     import org.apache.log4j.Level
>
>     Logger.getLogger("org").setLevel(Level.OFF)
>     Logger.getLogger("akka").setLevel(Level.OFF)
>
> You won't see any logs after that.
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/disable-log4j-for-spark-shell-tp11278p21010.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>

Mime
View raw message