Skip to content

Commit

Permalink
Improve spark integration: turn off logging, add magic for class dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitinas committed Nov 29, 2019
1 parent 9df879d commit 09e5766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@
"org.apache.spark.ml.feature.*"
],
"init": [
"org.apache.log4j.Logger.getLogger(\"org\").setLevel(org.apache.log4j.Level.OFF)",
"org.apache.log4j.Logger.getLogger(\"akka\").setLevel(org.apache.log4j.Level.OFF)",
"val spark = SparkSession\n .builder()\n .appName(\"Spark example\")\n .master(\"local\")\n .getOrCreate()",
"val sc = spark.sparkContext()",
"spark.sparkContext().setLogLevel(\"ERROR\")"
"%dumpClassesForSpark"
],
"initCell": [
"scala.Console.setOut(System.out)",
Expand Down

0 comments on commit 09e5766

Please sign in to comment.