Skip to content

Commit 5d700d2

Browse files
authored
Merge pull request #47 from beccam/6.7.x
Removed files and added redirect link
2 parents 3dcc1ae + 2212566 commit 5d700d2

File tree

1 file changed

+3
-93
lines changed

1 file changed

+3
-93
lines changed

README.md

Lines changed: 3 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,5 @@
1-
# Example projects for using DSE Analytics
1+
# DEPRECATED
22

3-
These are template projects that illustrate how to build Spark Application written in Java or Scala
4-
with Maven, SBT or Gradle which can be run on either DataStax Enterprise (DSE) or Apache Spark. The
5-
example project implements a simple write-to-/read-from-Cassandra application for each language and
6-
build tool.
7-
8-
## Dependencies
9-
10-
Compiling Spark applications depends on Apache Spark and optionally on Spark Cassandra Connector
11-
jars. Projects `dse` and `oss` show two different ways of supplying these dependencies. Both
12-
projects are built and executed with similar commands.
13-
14-
### DSE
15-
16-
If you are planning to execute your Spark Application on a DSE cluster, you can use the `dse`
17-
project template which will automatically download (and use during compilation) all jars available
18-
in the DSE cluster. Please mind the DSE version specified in the build file; it should should match
19-
the one in your cluster.
20-
21-
Please note that DSE projects templates are meant to be built with `sbt` 0.13.13 or newer. In case of
22-
unresolved dependencies errors, please update `sbt` and than clean `ivy` cache (with
23-
`rm ~/.ivy2/cache/com.datastax.dse/dse-spark-dependencies/` command)
24-
25-
### OSS
26-
27-
If you are planning to execute your Spark Application against Open Source Apache Spark and Open
28-
Source Apache Cassandra, use the `oss` project template where all dependencies have to be specified
29-
manually in build files. Please mind the dependency versions; these should match the ones in your
30-
execution environment.
31-
32-
For additional info about version compatibility please refer to the Spark Cassandra Connector
33-
[Version Compatibility Table](https://github.com/datastax/spark-cassandra-connector#version-compatibility).
34-
35-
### Additional dependencies
36-
37-
Prepared projects use extra plugins so additional dependencies can be included with your
38-
application's jar. All you need to do is add dependencies in the build configuration file.
39-
40-
## Building & running
41-
42-
### Sbt
43-
44-
Task | Command
45-
-------------|------------
46-
build | `sbt clean assembly`
47-
run (Scala) | `dse spark-submit --class com.datastax.spark.example.WriteRead target/scala-2.11/writeRead-assembly-0.1.jar`
48-
run (Java) | `dse spark-submit --class com.datastax.spark.example.WriteRead target/writeRead-assembly-0.1.jar`
49-
50-
### Gradle
51-
52-
Task | Command
53-
--------------------|------------
54-
build | `gradle shadowJar`
55-
run (Scala, Java) | `dse spark-submit --class com.datastax.spark.example.WriteRead build/libs/writeRead-0.1-all.jar`
56-
57-
### Maven
58-
59-
Task | Command
60-
--------------------|------------
61-
build | `mvn package`
62-
run (Scala, Java) | `dse spark-submit --class com.datastax.spark.example.WriteRead target/writeRead-0.1.jar`
63-
64-
Notes:
65-
66-
1. The above command example are for DSE. To run with open source Spark, use `spark-submit` instead
67-
2. Also see included example script [BuildTestAll.sh](BuildTestAll.sh) which runs all combinations
68-
69-
70-
## Running Integrated Tests
71-
72-
Integrated tests have been set up under a `test` task in each build system. To run
73-
the tests, invoke the build system and then launch `test`. These tests demonstrate
74-
how to run integrated embedded Cassandra as well as Local Spark from within your testing
75-
environment.
76-
77-
Currently only Scala Testing examples are provided.
78-
79-
These tests should also function inside IDEs that are configured with the ability to run
80-
the build system's tests.
81-
82-
## Support
83-
84-
The code, examples, and snippets provided in this repository are not "Supported Software" under any DataStax subscriptions or other agreements.
85-
86-
## License
87-
88-
Copyright 2016-2019, DataStax
89-
90-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
91-
92-
http://www.apache.org/licenses/LICENSE-2.0
93-
94-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
3+
This repository has moved to https://github.com/DataStax-Examples/spark-build-examples
954

5+
The current repository will no longer be updated.

0 commit comments

Comments
 (0)