You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by vanzin <gi...@git.apache.org> on 2016/04/21 00:58:26 UTC

[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

GitHub user vanzin opened a pull request:

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

    [SPARK-14744][examples] Clean up examples packaging, remove outdated examples.

    First, make all dependencies in the examples module provided, and explicit
    list a couple of ones that somehow are promoted to compile by maven. This
    means that to run streaming examples, the streaming connector package needs
    to be provided to run-examples using --packages or --jars, just like regular
    apps.
    
    Also, remove a couple of outdated examples. HBase has had Spark bindings for
    a while and is even including them in the HBase distribution in the next
    version, making the examples obsolete. The same applies to Cassandra, which
    seems to have a proper Spark binding library already.
    
    I just tested the build, which passes, and ran SparkPi. The examples jars
    directory now has only two jars:
    
    ```
    $ ls -1 examples/target/scala-2.11/jars/
    scopt_2.11-3.3.0.jar
    spark-examples_2.11-2.0.0-SNAPSHOT.jar
    ```

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

    $ git pull https://github.com/vanzin/spark SPARK-14744

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

    https://github.com/apache/spark/pull/12544.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 #12544
    
----
commit ccb73e88e367e8d5a2d233ea3c9c5f9d3a7fe9c5
Author: Marcelo Vanzin <va...@cloudera.com>
Date:   2016-04-20T22:54:15Z

    [SPARK-14744][examples] Clean up examples packaging, remove outdated examples.
    
    First, make all dependencies in the examples module provided, and explicit
    list a couple of ones that somehow are promoted to compile by maven. This
    means that to run streaming examples, the streaming connector package needs
    to be provided to run-examples using --packages or --jars, just like regular
    apps.
    
    Also, remove a couple of outdated examples. HBase has had Spark bindings for
    a while and is even including them in the HBase distribution in the next
    version, making the examples obsolete. The same applies to Cassandra, which
    seems to have a proper Spark binding library already.
    
    I just tested the build, which passes, and ran SparkPi. The examples jars
    directory now has only two jars:
    
    ```
    $ ls -1 examples/target/scala-2.11/jars/
    scopt_2.11-3.3.0.jar
    spark-examples_2.11-2.0.0-SNAPSHOT.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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-213114485
  
    I already got a review from Sean, but in case anyone else wants to chime in... @JoshRosen @rxin 


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#discussion_r60532040
  
    --- Diff: examples/pom.xml ---
    @@ -35,6 +35,10 @@
         <sbt.project.name>examples</sbt.project.name>
         <build.testJarPhase>none</build.testJarPhase>
         <build.copyDependenciesPhase>package</build.copyDependenciesPhase>
    +    <flume.deps.scope>provided</flume.deps.scope>
    --- End diff --
    
    Just double-checking, these are still needed in order for the examples assembly to set the right scope for other components when it builds, since these values are used and can vary elsewhere? LGTM


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

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


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-212645428
  
    **[Test build #56430 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56430/consoleFull)** for PR 12544 at commit [`ccb73e8`](https://github.com/apache/spark/commit/ccb73e88e367e8d5a2d233ea3c9c5f9d3a7fe9c5).


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#discussion_r60621196
  
    --- Diff: examples/pom.xml ---
    @@ -35,6 +35,10 @@
         <sbt.project.name>examples</sbt.project.name>
         <build.testJarPhase>none</build.testJarPhase>
         <build.copyDependenciesPhase>package</build.copyDependenciesPhase>
    +    <flume.deps.scope>provided</flume.deps.scope>
    --- End diff --
    
    Yeah, these dependencies are explicitly declared with `compile` scope in the root pom, and these properties override that.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-213116719
  
    Do you mean the HBase and Cassandra examples? My view is that they're not good examples of how to integrate with those systems, and leaving them around would send the wrong message.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-213025682
  
    > Is there any documentation that needs to be updated
    
    There isn't any explicit documentation about how to run streaming examples (that I can find). The pyspark bindings will print out an error message with instructions if the needed classes are not found, though. AFAIK Scala examples would just fail with a class not found error.
    
    In any case, running streaming examples is, in general, more complicated than just running a single spark app in any case. In my view they're meant more as a code example than something you should really try to be running.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-212732645
  
    Is there any documentation that needs to be updated with the addition of --packages or --jars to run the examples (e.g. running-on-yarn.md) ?


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-214448333
  
    Merging this to master.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-212679102
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/56430/
    Test 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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-213115271
  
    Can we have them as non-runnable files? I don't think people would run these, but it might be good to have them so people can write code based on the templates.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-212678794
  
    **[Test build #56430 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56430/consoleFull)** for PR 12544 at commit [`ccb73e8`](https://github.com/apache/spark/commit/ccb73e88e367e8d5a2d233ea3c9c5f9d3a7fe9c5).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: [SPARK-14744][examples] Clean up examples pack...

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

    https://github.com/apache/spark/pull/12544#issuecomment-212679101
  
    Merged build finished. Test 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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org