aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorTathagata Das <tathagata.das1565@gmail.com>2013-02-20 09:01:29 -0800
committerTathagata Das <tathagata.das1565@gmail.com>2013-02-20 09:01:29 -0800
commitfb9956256d19b9f8f79de43099d2b5fc851bcf08 (patch)
tree8a4bd96ce7f122342dcdc11626dae46b90e0c24c /run
parent7e30c46aaf337eb95c9ec37ddc2ad79439430c96 (diff)
parent03d847999e8c54684128573b94973544026081b2 (diff)
downloadspark-fb9956256d19b9f8f79de43099d2b5fc851bcf08.tar.gz
spark-fb9956256d19b9f8f79de43099d2b5fc851bcf08.tar.bz2
spark-fb9956256d19b9f8f79de43099d2b5fc851bcf08.zip
Merge branch 'mesos-master' into streaming
Conflicts: core/src/main/scala/spark/rdd/CheckpointRDD.scala streaming/src/main/scala/spark/streaming/dstream/ReducedWindowedDStream.scala
Diffstat (limited to 'run')
-rwxr-xr-xrun12
1 files changed, 12 insertions, 0 deletions
diff --git a/run b/run
index 37861f1a92..2d8a737e01 100755
--- a/run
+++ b/run
@@ -13,6 +13,18 @@ if [ -e $FWDIR/conf/spark-env.sh ] ; then
. $FWDIR/conf/spark-env.sh
fi
+if [ -z "$1" ]; then
+ echo "Usage: run <spark-class> [<args>]" >&2
+ exit 1
+fi
+
+# If this is a standalone cluster daemon, reset SPARK_JAVA_OPTS and SPARK_MEM to reasonable
+# 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_JAVA_OPTS=$SPARK_DAEMON_JAVA_OPTS # Empty by default
+fi
+
if [ "$SPARK_LAUNCH_WITH_SCALA" == "1" ]; then
if [ `command -v scala` ]; then
RUNNER="scala"