Skip to content

Instantly share code, notes, and snippets.

@fancellu
Created August 6, 2015 11:20
Show Gist options
  • Save fancellu/7bb961c1467a7b442ee6 to your computer and use it in GitHub Desktop.
Save fancellu/7bb961c1467a7b442ee6 to your computer and use it in GitHub Desktop.
Spark shell too chatty, want to turn off logging and can't be bothered to edit log4j files?
// Just run this inside the spark shell, no more chatty logs
import org.apache.log4j.Logger
import org.apache.log4j.Level
Logger.getLogger("org").setLevel(Level.OFF)
Logger.getLogger("akka").setLevel(Level.OFF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment