---------- Forwarded message ---------- From: Ritesh Kumar Singh <riteshoneinamill...@gmail.com> Date: Tue, Nov 11, 2014 at 2:18 PM Subject: Re: disable log4j for spark-shell To: lordjoe <lordjoe2...@gmail.com> Cc: u...@spark.incubator.apache.org
go to your spark home and then into the conf/ directory and then edit the log4j.properties file i.e. : >gedit $SPARK_HOME/conf/log4j.properties and set root logger to: log4j.rootCategory=WARN, console U don't need to build spark for the changes to take place. Whenever you open spark-shel, it by default looks into the conf directories and loads all the properties. Thanks On Tue, Nov 11, 2014 at 6:34 AM, lordjoe <lordjoe2...@gmail.com> wrote: > public static void main(String[] args) throws Exception { > System.out.println("Set Log to Warn"); > Logger rootLogger = Logger.getRootLogger(); > rootLogger.setLevel(Level.WARN); > ... > works for me > > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/disable-log4j-for-spark-shell-tp11278p18535.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >