You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by andrewor14 <gi...@git.apache.org> on 2014/05/01 09:21:58 UTC

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

GitHub user andrewor14 opened a pull request:

    https://github.com/apache/spark/pull/610

    [SPARK-1681] Include datanucleus jars in Spark distribution built with Hive support

    Currently, they are not included.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andrewor14/spark hive-distribution

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/610.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #610
    
----
commit 58357ccd85ff7b2107ef8d90539313fc1bafaa92
Author: Andrew Or <an...@gmail.com>
Date:   2014-05-01T07:16:46Z

    Include datanucleus jars in Spark distribution built with Hive support

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42098208
  
    As a more general solution for the problem I encountered I've created:
    https://issues.apache.org/jira/browse/SPARK-1703
    
    With that in mind I think it's fine to just address (2) here, since we can assume this error message will be found elsewhere.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42216407
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41887679
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42225577
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41934113
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12196870
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    --- End diff --
    
    Hm, seems to work for me without the slash:
    
    ```
    $> touch datanucleus-hello.jar
    $> datanucleus_jars=$(find . 2>/dev/null | grep "datanucleus-.*\.jar")
    $> echo $datanucleus_jars
    ./datanucleus-hello.jar
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12181130
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -29,6 +29,7 @@ FWDIR="$(cd `dirname $0`/..; pwd)"
     
     # Build up classpath
     CLASSPATH="$SPARK_CLASSPATH:$SPARK_SUBMIT_CLASSPATH:$FWDIR/conf"
    +CLASSPATH=$(echo "$CLASSPATH" | sed s/::/:/g)
    --- End diff --
    
    Is this just for aesthetics or is there a correctness issue here?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42098048
  
    Regarding question 1, it was just to avoid having to nest another check for the existence of the dependency jar. More of a hack than anything.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41944278
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14609/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41889528
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14606/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41888710
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41896741
  
    Sorry for a dumb question but is this the place to configure what goes into artifacts? the Maven build is where the rest of that action happens right? or is this a necessary special case?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41888622
  
    @andrewor14 looks good! Just a few small questions.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41944275
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42230064
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12180783
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    +datanucleus_jars=$(echo "$datanucleus_jars" | tr "\n" : | sed s/:$//g)
    +
    +if [ -n "$datanucleus_jars" ]; then
    +  an_assembly_jar=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    +  hive_files=$(jar tvf "$an_assembly_jar" org/apache/hadoop/hive/ql/exec)
    --- End diff --
    
    forgot, thanks


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by aarondav <gi...@git.apache.org>.
Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12180776
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    +datanucleus_jars=$(echo "$datanucleus_jars" | tr "\n" : | sed s/:$//g)
    +
    +if [ -n "$datanucleus_jars" ]; then
    +  an_assembly_jar=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    +  hive_files=$(jar tvf "$an_assembly_jar" org/apache/hadoop/hive/ql/exec)
    --- End diff --
    
    should probably still pipe 2>/dev/null here as before, I believe this throws an error if it doesn't exist


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42225581
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14669/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12192268
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    --- End diff --
    
    The first `\` escapes the second one, so that only one `\` is observed by grep


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12192133
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -29,6 +29,7 @@ FWDIR="$(cd `dirname $0`/..; pwd)"
     
     # Build up classpath
     CLASSPATH="$SPARK_CLASSPATH:$SPARK_SUBMIT_CLASSPATH:$FWDIR/conf"
    +CLASSPATH=$(echo "$CLASSPATH" | sed s/::/:/g)
    --- End diff --
    
    aesthetics... @aarondav also pointed out that this is a little confusing. Maybe I should remove it.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41932038
  
    Right now we actually build distributions with `make-distribution` that calls the maven build and then moves some things around. In this case the datanucleus jars need to be handled in a special way because they don't assemble well.
    
    I think for 1.1 the goal should be to both consolidate the builds and to potentially migrate this entire thing to maven using release profiles. But for now I want a surgical fix that we can pull into the 1.0 branch.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41887137
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41887671
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by witgo <gi...@git.apache.org>.
Github user witgo commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41911017
  
    There is another solution   #598  


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41934096
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41887130
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42230066
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14674/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42216385
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12181208
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    --- End diff --
    
    Why do you need to `\` characters before the period? Don't you just need to escape it once?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41889524
  
    Merged build finished. All automated tests passed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12196904
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    --- End diff --
    
    Oddly, works for me with _either_ one _or_ two slashes!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42226103
  
    Merged build started. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/610#discussion_r12254725
  
    --- Diff: bin/compute-classpath.sh ---
    @@ -63,14 +64,21 @@ fi
     # built with Hive, so first check if the datanucleus jars exist, and then ensure the current Spark
     # assembly is built for Hive, before actually populating the CLASSPATH with the jars.
     # Note that this check order is faster (by up to half a second) in the case where Hive is not used.
    -num_datanucleus_jars=$(ls "$FWDIR"/lib_managed/jars/ 2>/dev/null | grep "datanucleus-.*\\.jar" | wc -l)
    -if [ $num_datanucleus_jars -gt 0 ]; then
    -  AN_ASSEMBLY_JAR=${ASSEMBLY_JAR:-$DEPS_ASSEMBLY_JAR}
    -  num_hive_files=$(jar tvf "$AN_ASSEMBLY_JAR" org/apache/hadoop/hive/ql/exec 2>/dev/null | wc -l)
    -  if [ $num_hive_files -gt 0 ]; then
    +if [ -f "$FWDIR/RELEASE" ]; then
    +  datanucleus_dir="$FWDIR"/lib
    +else
    +  datanucleus_dir="$FWDIR"/lib_managed/jars
    +fi
    +
    +datanucleus_jars=$(find "$datanucleus_dir" 2>/dev/null | grep "datanucleus-.*\\.jar")
    --- End diff --
    
    LMAO
    ```
    $ echo "\."
    \.
    $ echo "\\."
    \.
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42226086
  
     Merged build triggered. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-42097964
  
    @andrewor14 @aarondav I tried this locally and ran into a bug. The use of `jar` to read the index of the files doesn't honor `JAVA_HOME`. In my case the system default is Java 6 whereas JAVA_HOME is set to Java 7. When it tried to get the index of the jar it failed silently. The actual error was this (related to the 65k jar limit)
    ```
    java.util.zip.ZipException: invalid CEN header (bad signature)
    	at java.util.zip.ZipFile.open(Native Method)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:132)
    	at java.util.zip.ZipFile.<init>(ZipFile.java:93)
    	at sun.tools.jar.Main.list(Main.java:997)
    	at sun.tools.jar.Main.run(Main.java:242)
    	at sun.tools.jar.Main.main(Main.java:1167)
    ```
    1. Is there a reason we intentionally swallow stderr from the `jar` command?
    2. Could we have the `jar` command respect `JAVA_HOME` similar to in `spark-class`?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/610#issuecomment-41888712
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14605/


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] spark pull request: [SPARK-1681] Include datanucleus jars in Spark...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/610


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---