Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/859#discussion_r12989735
--- Diff: make-distribution.sh ---
@@ -102,6 +84,33 @@ while (( "$#" )); do
shift
done
+if [ -z "$JAVA_HOME" ]; then
+ echo "Error: JAVA_HOME is not set, cannot proceed."
+ exit -1
+fi
+
+VERSION=$(mvn help:evaluate -Dexpression=project.version 2>/dev/null |
grep -v "INFO" | tail -n 1)
+if [ $? != 0 ]; then
+ echo -e "You need Maven installed to build Spark."
+ echo -e "Download Maven from https://maven.apache.org/"
+ exit -1;
+fi
+
+JAVA_CMD="$JAVA_HOME"/bin/java
+JAVA_VERSION=$("$JAVA_CMD" -version 2>&1)
+if [[ ! "$JAVA_VERSION" =~ "1.6" && -z "$SKIP_JAVA_TEST" ]]; then
+ echo "***NOTE***: JAVA_HOME is not set to a JDK 6 installation. The
resulting"
+ echo " distribution will not support Java 6. See SPARK-1703."
--- End diff --
Sadly, this is not enough! Even if people run on Java 7, pyspark on YARN
will fail if the assembly is compiled with Java 7.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---