aboutsummaryrefslogtreecommitdiff
path: root/bin/run-example
diff options
context:
space:
mode:
authorPrashant Sharma <prashant.s@imaginea.com>2014-07-03 15:06:58 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-07-03 15:06:58 -0700
commit731f683b1bd8abbb83030b6bae14876658bbf098 (patch)
tree729c971a4dd31818da07b8cec4d69d7d7fa9104d /bin/run-example
parenta9b52e5623f7fc77fca96b095f9eeaef76e35d54 (diff)
downloadspark-731f683b1bd8abbb83030b6bae14876658bbf098.tar.gz
spark-731f683b1bd8abbb83030b6bae14876658bbf098.tar.bz2
spark-731f683b1bd8abbb83030b6bae14876658bbf098.zip
[SPARK-2109] Setting SPARK_MEM for bin/pyspark does not work.
Trivial fix. Author: Prashant Sharma <prashant.s@imaginea.com> Closes #1050 from ScrapCodes/SPARK-2109/pyspark-script-bug and squashes the following commits: 77072b9 [Prashant Sharma] Changed echos to redirect to STDERR. 13f48a0 [Prashant Sharma] [SPARK-2109] Setting SPARK_MEM for bin/pyspark does not work.
Diffstat (limited to 'bin/run-example')
-rwxr-xr-xbin/run-example10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/run-example b/bin/run-example
index e7a5fe3914..942706d733 100755
--- a/bin/run-example
+++ b/bin/run-example
@@ -27,9 +27,9 @@ if [ -n "$1" ]; then
EXAMPLE_CLASS="$1"
shift
else
- echo "Usage: ./bin/run-example <example-class> [example-args]"
- echo " - set MASTER=XX to use a specific master"
- echo " - can use abbreviated example class name (e.g. SparkPi, mllib.LinearRegression)"
+ echo "Usage: ./bin/run-example <example-class> [example-args]" 1>&2
+ echo " - set MASTER=XX to use a specific master" 1>&2
+ echo " - can use abbreviated example class name (e.g. SparkPi, mllib.LinearRegression)" 1>&2
exit 1
fi
@@ -40,8 +40,8 @@ elif [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/spark-examples-*hadoop*.ja
fi
if [[ -z $SPARK_EXAMPLES_JAR ]]; then
- echo "Failed to find Spark examples assembly in $FWDIR/lib or $FWDIR/examples/target" >&2
- echo "You need to build Spark before running this program" >&2
+ echo "Failed to find Spark examples assembly in $FWDIR/lib or $FWDIR/examples/target" 1>&2
+ echo "You need to build Spark before running this program" 1>&2
exit 1
fi