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 <[email protected]>
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]