title: How to stop INFO messages displaying on spark console?
body: <p>I'd like to stop various messages that are coming on spark shell.</p>
  
  <p>I tried to edit the <code>log4j.properties</code> file in order to stop these message.</p>
  
  <p>Here are the contents of <code>log4j.properties</code></p>
  
  <pre><code># Define the root logger with appender file
  log4j.rootCategory=WARN, console
  log4j.appender.console=org.apache.log4j.ConsoleAppender
  log4j.appender.console.target=System.err
  log4j.appender.console.layout=org.apache.log4j.PatternLayout
  log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n
  
  # Settings to quiet third party logs that are too verbose
  log4j.logger.org.eclipse.jetty=WARN
  log4j.logger.org.eclipse.jetty.util.component.AbstractLifeCycle=ERROR
  log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=INFO
  log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=INFO
  </code></pre>
  
  <p>But messages are still getting displayed on the console.</p>
  
  <p>Here are some example messages</p>
  
  <pre><code>15/01/05 15:11:45 INFO SparkEnv: Registering BlockManagerMaster
  15/01/05 15:11:45 INFO DiskBlockManager: Created local directory at /tmp/spark-local-20150105151145-b1ba
  15/01/05 15:11:45 INFO MemoryStore: MemoryStore started with capacity 0.0 B.
  15/01/05 15:11:45 INFO ConnectionManager: Bound socket to port 44728 with id = ConnectionManagerId(192.168.100.85,44728)
  15/01/05 15:11:45 INFO BlockManagerMaster: Trying to register BlockManager
  15/01/05 15:11:45 INFO BlockManagerMasterActor$BlockManagerInfo: Registering block manager 192.168.100.85:44728 with 0.0 B RAM
  15/01/05 15:11:45 INFO BlockManagerMaster: Registered BlockManager
  15/01/05 15:11:45 INFO HttpServer: Starting HTTP Server
  15/01/05 15:11:45 INFO HttpBroadcast: Broadcast server star
  </code></pre>
  
  <p>How do I stop these?</p>