Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/627#discussion_r12260344
  
    --- Diff: make-distribution.sh ---
    @@ -50,6 +50,20 @@ if [ $? == -1 ] ;then
         exit -1;
     fi
     
    +if [ -z "${JAVA_HOME}" ]; then
    +  echo "Error: JAVA_HOME is not set, cannot proceed."
    +  exit -1
    +fi
    +
    +JAVA_CMD=$JAVA_HOME/bin/java
    +JAVA_VERSION=$($JAVA_CMD -version 2>&1)
    +if ! [[ "$JAVA_VERSION" =~ "1.6" ]]; then
    +  echo "Error: Java version was not 1.6. Spark must be compiled with JDK 
1.6 "
    --- End diff --
    
    maybe add a comment on how to fix this (i.e., set JAVA_HOME).


---
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.
---

Reply via email to