aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorPatrick Wendell <pwendell@gmail.com>2013-08-09 13:00:33 -0700
committerPatrick Wendell <pwendell@gmail.com>2013-08-09 13:00:33 -0700
commitcc6b92e80ec42cc21719331e7cb8ef06aed33074 (patch)
tree3e168cd5c2d111bc89b09f8b97a09e75f0d72ca9 /run
parentf94fc75c3f3b8b1337fe3f849c2cba119eaa9bc7 (diff)
parent3970b580c206d58189ade3930aca1e478bff8c84 (diff)
downloadspark-cc6b92e80ec42cc21719331e7cb8ef06aed33074.tar.gz
spark-cc6b92e80ec42cc21719331e7cb8ef06aed33074.tar.bz2
spark-cc6b92e80ec42cc21719331e7cb8ef06aed33074.zip
Merge pull request #775 from pwendell/print-launch-command
Log the launch command for Spark daemons
Diffstat (limited to 'run')
-rwxr-xr-xrun10
1 files changed, 9 insertions, 1 deletions
diff --git a/run b/run
index 0a440627a1..3868332c90 100755
--- a/run
+++ b/run
@@ -164,4 +164,12 @@ else
# The JVM doesn't read JAVA_OPTS by default so we need to pass it in
EXTRA_ARGS="$JAVA_OPTS"
fi
-exec "$RUNNER" -cp "$CLASSPATH" $EXTRA_ARGS "$@"
+
+command="$RUNNER -cp \"$CLASSPATH\" $EXTRA_ARGS $@"
+if [ "$SPARK_PRINT_LAUNCH_COMMAND" == "1" ]; then
+ echo "Spark Command: $command"
+ echo "========================================"
+ echo
+fi
+
+exec $command