aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2013-04-03 14:29:46 -0700
committerPatrick Wendell <pwendell@gmail.com>2013-04-03 14:29:46 -0700
commit9b68ceaa26ffe0cf0692781dd010e69f1d9633e2 (patch)
tree2d4f60023b0ef33341cce45f080b65d9fa67bedb
parent2be2295ff244eb2585e13346bfc00109443d4287 (diff)
downloadspark-9b68ceaa26ffe0cf0692781dd010e69f1d9633e2.tar.gz
spark-9b68ceaa26ffe0cf0692781dd010e69f1d9633e2.tar.bz2
spark-9b68ceaa26ffe0cf0692781dd010e69f1d9633e2.zip
SPARK-724 - Have Akka logging enabled by default for standalone daemons
See the JIRA for more details. I was only able to test the bash version (don't have Windows) so maybe check over that the syntax is correct there.
-rwxr-xr-xrun1
-rw-r--r--run2.cmd1
2 files changed, 2 insertions, 0 deletions
diff --git a/run b/run
index 2c29cc4a66..ceb6e58173 100755
--- a/run
+++ b/run
@@ -22,6 +22,7 @@ fi
# values for that; it doesn't need a lot
if [ "$1" = "spark.deploy.master.Master" -o "$1" = "spark.deploy.worker.Worker" ]; then
SPARK_MEM=${SPARK_DAEMON_MEMORY:-512m}
+ SPARK_DAEMON_JAVA_OPTS+="-Dspark.akka.logLifecycleEvents=true"
SPARK_JAVA_OPTS=$SPARK_DAEMON_JAVA_OPTS # Empty by default
fi
diff --git a/run2.cmd b/run2.cmd
index cb20a4b7a2..cfbb35ddca 100644
--- a/run2.cmd
+++ b/run2.cmd
@@ -21,6 +21,7 @@ set RUNNING_DAEMON=0
if "%1"=="spark.deploy.master.Master" set RUNNING_DAEMON=1
if "%1"=="spark.deploy.worker.Worker" set RUNNING_DAEMON=1
if "x%SPARK_DAEMON_MEMORY%" == "x" set SPARK_DAEMON_MEMORY=512m
+set SPARK_DAEMON_JAVA_OPTS=%SPARK_DAEMON_JAVA_OPTS% -Dspark.akka.logLifecycleEvents=true
if "%RUNNING_DAEMON%"=="1" set SPARK_MEM=%SPARK_DAEMON_MEMORY%
if "%RUNNING_DAEMON%"=="1" set SPARK_JAVA_OPTS=%SPARK_DAEMON_JAVA_OPTS%