diff options
author | Prashant Sharma <prashant.s@imaginea.com> | 2014-07-03 15:06:58 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-07-03 15:06:58 -0700 |
commit | 731f683b1bd8abbb83030b6bae14876658bbf098 (patch) | |
tree | 729c971a4dd31818da07b8cec4d69d7d7fa9104d /bin/compute-classpath.sh | |
parent | a9b52e5623f7fc77fca96b095f9eeaef76e35d54 (diff) | |
download | spark-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/compute-classpath.sh')
-rwxr-xr-x | bin/compute-classpath.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/compute-classpath.sh b/bin/compute-classpath.sh index 2cf4e381c1..e81e8c060c 100755 --- a/bin/compute-classpath.sh +++ b/bin/compute-classpath.sh @@ -81,10 +81,10 @@ ASSEMBLY_JAR=$(ls "$assembly_folder"/spark-assembly*hadoop*.jar 2>/dev/null) # Verify that versions of java used to build the jars and run Spark are compatible jar_error_check=$("$JAR_CMD" -tf "$ASSEMBLY_JAR" nonexistent/class/path 2>&1) if [[ "$jar_error_check" =~ "invalid CEN header" ]]; then - echo "Loading Spark jar with '$JAR_CMD' failed. " - echo "This is likely because Spark was compiled with Java 7 and run " - echo "with Java 6. (see SPARK-1703). Please use Java 7 to run Spark " - echo "or build Spark with Java 6." + echo "Loading Spark jar with '$JAR_CMD' failed. " 1>&2 + echo "This is likely because Spark was compiled with Java 7 and run " 1>&2 + echo "with Java 6. (see SPARK-1703). Please use Java 7 to run Spark " 1>&2 + echo "or build Spark with Java 6." 1>&2 exit 1 fi |