From 704e923ad5bc2b33f3f6eb9a02e19ff202cd3d45 Mon Sep 17 00:00:00 2001 From: Samuel Rivas Date: Sat, 26 Dec 2015 18:29:49 +0100 Subject: [PATCH] spark: reduce default shell log verbosity --- pkgs/applications/networking/cluster/spark/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/networking/cluster/spark/default.nix b/pkgs/applications/networking/cluster/spark/default.nix index 727d0b0e9176..278fc6305c78 100644 --- a/pkgs/applications/networking/cluster/spark/default.nix +++ b/pkgs/applications/networking/cluster/spark/default.nix @@ -21,6 +21,10 @@ stdenv.mkDerivation rec { mkdir -p $out/{lib/${untarDir}/conf,bin} mv * $out/lib/${untarDir} + sed -e 's/INFO, console/WARN, console/' < \ + $out/lib/${untarDir}/conf/log4j.properties.template > \ + $out/lib/${untarDir}/conf/log4j.properties + cat > $out/lib/${untarDir}/conf/spark-env.sh <<- EOF export JAVA_HOME="${jre}" export SPARK_HOME="$out/lib/${untarDir}"