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

    https://github.com/apache/spark/pull/610#discussion_r12292824
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -52,40 +52,48 @@ if [ -f "$ASSEMBLY_DIR"/spark-assembly*hadoop*-deps.jar 
]; then
       
CLASSPATH="$CLASSPATH:$FWDIR/sql/hive/target/scala-$SCALA_VERSION/classes"
       
CLASSPATH="$CLASSPATH:$FWDIR/yarn/stable/target/scala-$SCALA_VERSION/classes"
     
    -  DEPS_ASSEMBLY_JAR=`ls "$ASSEMBLY_DIR"/spark-assembly*hadoop*-deps.jar`
    -  CLASSPATH="$CLASSPATH:$DEPS_ASSEMBLY_JAR"
    +  ASSEMBLY_JAR=$(ls "$ASSEMBLY_DIR"/spark-assembly*hadoop*-deps.jar 
2>/dev/null)
     else
       # Else use spark-assembly jar from either RELEASE or assembly directory
       if [ -f "$FWDIR/RELEASE" ]; then
    -    ASSEMBLY_JAR=`ls "$FWDIR"/lib/spark-assembly*hadoop*.jar`
    +    ASSEMBLY_JAR=$(ls "$FWDIR"/lib/spark-assembly*hadoop*.jar 2>/dev/null)
       else
    -    ASSEMBLY_JAR=`ls "$ASSEMBLY_DIR"/spark-assembly*hadoop*.jar`
    +    ASSEMBLY_JAR=$(ls "$ASSEMBLY_DIR"/spark-assembly*hadoop*.jar 
2>/dev/null)
       fi
    -  jar_error_check=$($JAR_CMD -tf $ASSEMBLY_JAR 
org/apache/spark/SparkContext 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."
    -    exit 1
    -  fi
    -  CLASSPATH="$CLASSPATH:$ASSEMBLY_JAR"
     fi
     
    +# Verify that versions of java used to build the jars and run Spark are 
compatible
    +jar_error_check=$("$JAR_CMD" -tf "$ASSEMBLY_JAR" scala/AnyVal 2>&1)
    --- End diff --
    
    As per our offline discussion, let's just change this to 
`unused/class/path` or something.


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