You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/01/21 08:34:45 UTC

[2/3] git commit: Removed SPARK_MEM from run-examples.

Removed SPARK_MEM from run-examples.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/65869f84
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/65869f84
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/65869f84

Branch: refs/heads/master
Commit: 65869f843d5eb2b9b686d07aadaa7f1a0f16e8c7
Parents: e0b741d
Author: Tathagata Das <ta...@gmail.com>
Authored: Mon Jan 20 23:15:28 2014 -0800
Committer: Tathagata Das <ta...@gmail.com>
Committed: Mon Jan 20 23:15:28 2014 -0800

----------------------------------------------------------------------
 bin/run-example | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/65869f84/bin/run-example
----------------------------------------------------------------------
diff --git a/bin/run-example b/bin/run-example
index a362b11..adba7dd 100755
--- a/bin/run-example
+++ b/bin/run-example
@@ -64,10 +64,6 @@ if $cygwin; then
     export SPARK_EXAMPLES_JAR=`cygpath -w $SPARK_EXAMPLES_JAR`
 fi
 
-# Set SPARK_MEM if it isn't already set since we also use it for this process
-SPARK_MEM=${SPARK_MEM:-512m}
-export SPARK_MEM
-
 # Find java binary
 if [ -n "${JAVA_HOME}" ]; then
   RUNNER="${JAVA_HOME}/bin/java"
@@ -83,7 +79,6 @@ fi
 # Set JAVA_OPTS to be able to load native libraries and to set heap size
 JAVA_OPTS="$SPARK_JAVA_OPTS"
 JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$SPARK_LIBRARY_PATH"
-JAVA_OPTS="$JAVA_OPTS -Xms$SPARK_MEM -Xmx$SPARK_MEM"
 # Load extra JAVA_OPTS from conf/java-opts, if it exists
 if [ -e "$FWDIR/conf/java-opts" ] ; then
   JAVA_OPTS="$JAVA_OPTS `cat $FWDIR/conf/java-opts`"