Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
DSP-9944: Update Dse Version to 5.0.4
  • Loading branch information
RussellSpitzer committed Dec 20, 2016
commit 7ef8d363ce7f51628dcf2993e3e9c5a9fb1cf63c
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ Notes:
1. The above command example are for DSE. To run with open source Spark, use `spark-submit` instead
2. Also see included example script [BuildTestAll.sh](BuildTestAll.sh) which runs all combinations


## Running Integrated Tests

Integrated tests have been set up under a `test` task in each build system. To run
the tests, invoke the build system and then launch `test`. These tests demonstrate
how to run integrated embedded Cassandra as well as Local Spark from within your testing
environment.

Currently only Scala Testing examples are provided.

These tests should also function inside IDEs that are configured with the ability to run
the build system's tests.

## Support

The code, examples, and snippets provided in this repository are not "Supported Software" under any DataStax subscriptions or other agreements.
Expand Down
5 changes: 2 additions & 3 deletions java/gradle/dse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ repositories {
}
}

def sparkVersion = "1.6.2"
def connectorVersion = "1.6.0"
def dseVersion = "5.0.4"

// The assembly configuration will cause jar to be included in assembled fat-jar
configurations {
Expand All @@ -32,7 +31,7 @@ configurations {
// Please make sure that following dependencies have versions corresponding to the ones in your cluster.
// Note that spark-cassandra-connector should be provided with '--packages' flag to spark-submit command.
dependencies {
provided "com.datastax.dse:dse-spark-dependencies:5.0.1"
provided "com.datastax.dse:dse-spark-dependencies:$dseVersion"
// assembly "org.apache.commons:commons-math3:3.6.1"
// assembly "org.apache.commons:commons-csv:1.0"
}
Expand Down
3 changes: 2 additions & 1 deletion java/maven/dse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<dse.version>5.0.4</dse.version>
</properties>

<dependencies>
<dependency>
<groupId>com.datastax.dse</groupId>
<artifactId>dse-spark-dependencies</artifactId>
<version>5.0.1</version>
<version>${dse.version}</version>
<scope>provided</scope>
</dependency>
<!-- Your dependencies, 'provided' are not included in jar -->
Expand Down
5 changes: 4 additions & 1 deletion java/sbt/dse/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ autoScalaLibrary := false

resolvers += "DataStax Repo" at "https://datastax.artifactoryonline.com/datastax/public-repos/"

val dseVersion = "5.0.4"

// Please make sure that following DSE version matches your DSE cluster version.
libraryDependencies += "com.datastax.dse" % "dse-spark-dependencies" % "5.0.1" % "provided"
// SBT 0.13.13 or greater required because of a dependency resolution bug
libraryDependencies += "com.datastax.dse" % "dse-spark-dependencies" % dseVersion % "provided"

//Your dependencies
//libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1"
Expand Down
10 changes: 6 additions & 4 deletions scala/gradle/dse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ repositories {
}
}

def sparkVersion = "1.6.2"
def connectorVersion = "1.6.0"

// The assembly configuration will cause jar to be included in assembled fat-jar
configurations {
Expand All @@ -30,19 +28,23 @@ configurations {
testCompile.exclude group: 'org.slf4j', module: 'log4j-over-slf4j'
}

def dseVersion = "5.0.4"

def scalaVersion = "2.10"
def connectorVersion = "1.6.0"
def scalaTestVersion = "3.0.0"
def connectorVersion = "1.6.0"
def jUnitVersion = "4.12"

// Please make sure that following DSE version matches your DSE cluster version.
dependencies {
provided "com.datastax.dse:dse-spark-dependencies:5.0.1" exclude group: 'org.slf4j', module: 'slf4j-log4j12'
provided "com.datastax.dse:dse-spark-dependencies:$dseVersion" exclude group: 'org.slf4j', module: 'slf4j-log4j12'
// assembly "org.apache.commons:commons-math3:3.6.1"
// assembly "org.apache.commons:commons-csv:1.0"

//Test Dependencies
testCompile "com.datastax.spark:spark-cassandra-connector-embedded_$scalaVersion:$connectorVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
testCompile "junit:junit:$jUnitVersion"
}

shadowJar {
Expand Down
2 changes: 2 additions & 0 deletions scala/gradle/oss/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def connectorVersion = "1.6.0"
def scalaVersion = "2.10"
def scalaTestVersion = "3.0.0"
def cassandraVersion = "3.0.2"
def jUnitVersion = "4.12"

// The assembly configuration will cause jar to be included in assembled fat-jar
configurations {
Expand Down Expand Up @@ -43,6 +44,7 @@ dependencies {
testCompile "com.datastax.spark:spark-cassandra-connector-embedded_$scalaVersion:$connectorVersion"
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
testCompile "org.apache.cassandra:cassandra-all:$cassandraVersion"
testCompile "junit:junit:$jUnitVersion"
}

shadowJar {
Expand Down
10 changes: 9 additions & 1 deletion scala/maven/dse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<dse.version>5.0.4</dse.version>
<scala.version>2.10.6</scala.version>
<scala.main.version>2.10</scala.main.version>
<scalatest.version>3.0.0</scalatest.version>
<connector.version>1.6.0</connector.version>
<junit.version>4.12</junit.version>
</properties>

<dependencies>
<dependency>
<groupId>com.datastax.dse</groupId>
<artifactId>dse-spark-dependencies</artifactId>
<version>5.0.1</version>
<version>${dse.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand Down Expand Up @@ -57,6 +59,12 @@
<version>${scalatest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
Expand Down
7 changes: 7 additions & 0 deletions scala/maven/oss/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<scalatest.version>3.0.0</scalatest.version>
<connector.version>1.6.0</connector.version>
<cassandra.version>3.0.2</cassandra.version>
<junit.version>4.12</junit.version>
</properties>

<!--
Expand Down Expand Up @@ -76,6 +77,12 @@
<version>${scalatest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
Expand Down
15 changes: 12 additions & 3 deletions scala/sbt/dse/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ scalaVersion := "2.10.6"

resolvers += "DataStax Repo" at "https://datastax.artifactoryonline.com/datastax/public-repos/"

val dseVersion = "5.0.4"

// Please make sure that following DSE version matches your DSE cluster version.
// Exclusions are solely for running integrated testing
// Warning Sbt 0.13.13 or greater is required due to a bug with dependency resolution
libraryDependencies += (
"com.datastax.dse" % "dse-spark-dependencies" % "5.0.1" % "provided" excludeAll (
"com.datastax.dse" % "dse-spark-dependencies" % dseVersion % "provided" excludeAll (
ExclusionRule("org.slf4j","slf4j-log4j12"),
ExclusionRule("org.mortbay.jetty"),
ExclusionRule("javax.servlet")
Expand All @@ -22,11 +25,17 @@ libraryDependencies += (
//for the version of the Spark Cassandra Connector in use.
val scalaTestVersion = "3.0.0"
val connectorVersion = "1.6.0"
val jUnitVersion = "4.12"

libraryDependencies ++= Seq(
"com.datastax.spark" %% "spark-cassandra-connector-embedded" % connectorVersion % "test",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
).map(_.exclude("org.slf4j","log4j-over-slf4j")) // Excluded to allow for Cassandra to run embedded
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"junit" % "junit" % "4.12"

).map(_.excludeAll(
ExclusionRule("org.slf4j","log4j-over-slf4j"),
ExclusionRule("org.slf4j","slf4j-log4j12"))
) // Excluded to allow for Cassandra to run embedded

//Forking is required for the Embedded Cassandra
fork in Test := true
Expand Down
4 changes: 3 additions & 1 deletion scala/sbt/oss/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ val connectorVersion = "1.6.0"

val cassandraVersion = "3.0.2"
val scalaTestVersion = "3.0.0"
val jUnitVersion = "4.12"


// Please make sure that following dependencies have versions corresponding to the ones in your cluster.
Expand All @@ -24,7 +25,8 @@ libraryDependencies ++= Seq(
//Test Dependencies
"com.datastax.spark" %% "spark-cassandra-connector-embedded" % connectorVersion % "test",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.apache.cassandra" % "cassandra-all" % cassandraVersion % "test"
"org.apache.cassandra" % "cassandra-all" % cassandraVersion % "test",
"junit" % "junit" % jUnitVersion % "test"
).map(_.exclude("org.slf4j","log4j-over-slf4j")) // Excluded to allow for Cassandra to run embedded

//Forking is required for the Embedded Cassandra
Expand Down