Skip to content

Commit b617b2a

Browse files
committed
DSP-12329 bump spark/connector versions for OSS
also remove cassandra-driver-core dependency from spark-cassandra-connector-embedded as it conflicts with the one embedded in spark-cassandra-connector
1 parent 1901355 commit b617b2a

File tree

7 files changed

+42
-21
lines changed

7 files changed

+42
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ application's jar. All you need to do is add dependencies in the build configura
4343

4444
Task | Command
4545
-------------|------------
46-
build | `sbt assembly`
46+
build | `sbt clean assembly`
4747
run (Scala) | `dse spark-submit --class com.datastax.spark.example.WriteRead target/scala-2.10/writeRead-assembly-0.1.jar`
4848
run (Java) | `dse spark-submit --class com.datastax.spark.example.WriteRead target/writeRead-assembly-0.1.jar`
4949

java/gradle/oss/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ repositories {
1010
mavenCentral()
1111
}
1212

13-
def sparkVersion = "1.6.2"
14-
def connectorVersion = "1.6.0"
13+
def sparkVersion = "2.0.0"
14+
def connectorVersion = "2.0.0-M3"
1515

1616
// The assembly configuration will cause jar to be included in assembled fat-jar
1717
configurations {

java/maven/oss/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<spark.version>1.6.2</spark.version>
13-
<connector.version>1.6.0</connector.version>
12+
<spark.version>2.0.0</spark.version>
13+
<connector.version>2.0.0-M3</connector.version>
1414
</properties>
1515

1616
<!--

java/sbt/oss/build.sbt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ crossPaths := false
66

77
autoScalaLibrary := false
88

9-
val sparkVersion = "1.6.2"
10-
val connectorVersion = "1.6.0"
9+
scalaVersion := "2.11.8"
10+
11+
val sparkVersion = "2.0.0"
12+
val connectorVersion = "2.0.0-M3"
1113

1214
// Please make sure that following dependencies have versions corresponding to the ones in your cluster.
1315
// Note that spark-cassandra-connector should be provided with '--packages' flag to spark-submit command.

scala/gradle/oss/build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ repositories {
1010
mavenCentral()
1111
}
1212

13-
def sparkVersion = "1.6.2"
14-
def connectorVersion = "1.6.0"
15-
def scalaVersion = "2.10"
13+
def sparkVersion = "2.0.0"
14+
def connectorVersion = "2.0.0-M3"
15+
def scalaVersion = "2.11"
1616
def scalaTestVersion = "3.0.0"
1717
def cassandraVersion = "3.0.2"
1818
def jUnitVersion = "4.12"
@@ -41,9 +41,13 @@ dependencies {
4141
// assembly "org.apache.commons:commons-csv:1.0"
4242

4343
//Test Dependencies
44-
testCompile "com.datastax.spark:spark-cassandra-connector-embedded_$scalaVersion:$connectorVersion"
44+
testCompile ("com.datastax.spark:spark-cassandra-connector-embedded_$scalaVersion:$connectorVersion") {
45+
exclude group: 'com.datastax.cassandra', module: 'cassandra-driver-core'
46+
}
4547
testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion"
46-
testCompile "org.apache.cassandra:cassandra-all:$cassandraVersion"
48+
testCompile("org.apache.cassandra:cassandra-all:$cassandraVersion") {
49+
exclude group: 'org.slf4j', module: 'log4j-over-slf4j' // Excluded to allow for Cassandra to run embedded
50+
}
4751
testCompile "junit:junit:$jUnitVersion"
4852
}
4953

scala/maven/oss/pom.xml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<scala.version>2.10.6</scala.version>
13-
<scala.main.version>2.10</scala.main.version>
14-
<spark.version>1.6.2</spark.version>
12+
<scala.version>2.11.8</scala.version>
13+
<scala.main.version>2.11</scala.main.version>
14+
<spark.version>2.0.0</spark.version>
1515
<scalatest.version>3.0.0</scalatest.version>
16-
<connector.version>1.6.0</connector.version>
16+
<connector.version>2.0.0-M3</connector.version>
1717
<cassandra.version>3.0.2</cassandra.version>
1818
<junit.version>4.12</junit.version>
1919
</properties>
@@ -70,6 +70,12 @@
7070
<artifactId>spark-cassandra-connector-embedded_${scala.main.version}</artifactId>
7171
<version>${connector.version}</version>
7272
<scope>test</scope>
73+
<exclusions>
74+
<exclusion>
75+
<groupId>com.datastax.cassandra</groupId>
76+
<artifactId>cassandra-driver-core</artifactId>
77+
</exclusion>
78+
</exclusions>
7379
</dependency>
7480
<dependency>
7581
<groupId>org.scalatest</groupId>
@@ -88,6 +94,13 @@
8894
<artifactId>cassandra-all</artifactId>
8995
<version>${cassandra.version}</version>
9096
<scope>test</scope>
97+
<exclusions>
98+
<!-- Excluded to allow for Cassandra to run embedded -->
99+
<exclusion>
100+
<groupId>org.slf4j</groupId>
101+
<artifactId>log4j-over-slf4j</artifactId>
102+
</exclusion>
103+
</exclusions>
91104
</dependency>
92105
<!-- Force Guava 18 on Test CP, Required for Cassandra -->
93106
<dependency>

scala/sbt/oss/build.sbt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name := "writeRead"
22

33
version := "0.1"
44

5-
scalaVersion := "2.10.6"
5+
scalaVersion := "2.11.8"
66

7-
val sparkVersion = "1.6.2"
8-
val connectorVersion = "1.6.0"
7+
val sparkVersion = "2.0.0"
8+
val connectorVersion = "2.0.0-M3"
99
//The 'test/resources' Directory in should match the resources directory in the `it` directory
1010
//for the version of the Spark Cassandra Connector in use.
1111

@@ -22,12 +22,14 @@ libraryDependencies ++= Seq(
2222
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
2323
"org.apache.spark" %% "spark-hive" % sparkVersion % "provided",
2424
"com.datastax.spark" %% "spark-cassandra-connector" % connectorVersion % "provided",
25+
2526
//Test Dependencies
26-
"com.datastax.spark" %% "spark-cassandra-connector-embedded" % connectorVersion % "test",
27+
"com.datastax.spark" %% "spark-cassandra-connector-embedded" % connectorVersion % "test"
28+
exclude("com.datastax.cassandra", "cassandra-driver-core"),
2729
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
2830
"org.apache.cassandra" % "cassandra-all" % cassandraVersion % "test",
2931
"junit" % "junit" % jUnitVersion % "test"
30-
).map(_.exclude("org.slf4j","log4j-over-slf4j")) // Excluded to allow for Cassandra to run embedded
32+
).map(_.exclude("org.slf4j", "log4j-over-slf4j")) // Excluded to allow for Cassandra to run embedded
3133

3234
//Forking is required for the Embedded Cassandra
3335
fork in Test := true

0 commit comments

Comments
 (0)