File tree Expand file tree Collapse file tree 17 files changed +42
-101
lines changed Expand file tree Collapse file tree 17 files changed +42
-101
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ run (Java) | `dse spark-submit --class com.datastax.spark.example.WriteRead ta
5151
5252Task | Command
5353--------------------|------------
54- build | ` gradle build `
54+ build | ` gradle shadowJar `
5555run (Scala, Java) | ` dse spark-submit --class com.datastax.spark.example.WriteRead build/libs/writeRead-0.1-all.jar `
5656
5757### Maven
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ repositories {
1313 }
1414}
1515
16- def dseVersion = " 5.1.0 "
16+ def dseVersion = " 5.1.1 "
1717
1818// The assembly configuration will cause jar to be included in assembled fat-jar
1919configurations {
@@ -31,14 +31,9 @@ configurations {
3131// Please make sure that following dependencies have versions corresponding to the ones in your cluster.
3232// Note that spark-cassandra-connector should be provided with '--packages' flag to spark-submit command.
3333dependencies {
34- provided(" com.datastax.dse:dse-spark-dependencies:$dseVersion " ) {
35- exclude group : ' com.datastax.dse' , module : ' dse-java-driver-core'
36- exclude group : ' org.apache.solr' , module : ' solr-solrj'
37- }
34+ provided " com.datastax.dse:dse-spark-dependencies:$dseVersion "
3835// assembly "org.apache.commons:commons-math3:3.6.1"
3936// assembly "org.apache.commons:commons-csv:1.0"
40- provided " com.datastax.dse:dse-java-driver-core:1.2.3"
41- provided " org.apache.solr:solr-solrj:6.0.1"
4237}
4338
4439shadowJar {
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ repositories {
1010 mavenCentral()
1111}
1212
13- def sparkVersion = " 2.0.0 "
14- def connectorVersion = " 2.0.1 "
13+ def sparkVersion = " 2.0.2 "
14+ def connectorVersion = " 2.0.2 "
1515
1616// The assembly configuration will cause jar to be included in assembled fat-jar
1717configurations {
Original file line number Diff line number Diff line change 99
1010 <properties >
1111 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
12- <dse .version>5.1.0 </dse .version>
12+ <dse .version>5.1.1 </dse .version>
1313 </properties >
1414
1515 <dependencies >
1818 <artifactId >dse-spark-dependencies</artifactId >
1919 <version >${dse.version} </version >
2020 <scope >provided</scope >
21- <exclusions >
22- <exclusion >
23- <groupId >com.datastax.dse</groupId >
24- <artifactId >dse-java-driver-core</artifactId >
25- </exclusion >
26- <exclusion >
27- <groupId >org.apache.solr</groupId >
28- <artifactId >solr-solrj</artifactId >
29- </exclusion >
30- </exclusions >
3121 </dependency >
3222 <!-- Your dependencies, 'provided' are not included in jar -->
3323 <!-- <dependency>-->
4030 <!-- <artifactId>commons-csv</artifactId>-->
4131 <!-- <version>1.0</version>-->
4232 <!-- </dependency>-->
43- <dependency >
44- <groupId >com.datastax.dse</groupId >
45- <artifactId >dse-java-driver-core</artifactId >
46- <version >1.2.3</version >
47- </dependency >
48- <dependency >
49- <groupId >org.apache.solr</groupId >
50- <artifactId >solr-solrj</artifactId >
51- <version >6.0.1</version >
52- </dependency >
5333 </dependencies >
5434
5535 <repositories >
Original file line number Diff line number Diff line change 99
1010 <properties >
1111 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
12- <spark .version>2.0.0 </spark .version>
13- <connector .version>2.0.1 </connector .version>
12+ <spark .version>2.0.2 </spark .version>
13+ <connector .version>2.0.2 </connector .version>
1414 </properties >
1515
1616 <!--
Original file line number Diff line number Diff line change @@ -10,28 +10,17 @@ scalaVersion := "2.11.8"
1010
1111resolvers += " DataStax Repo" at " https://repo.datastax.com/public-repos/"
1212
13- val dseVersion = " 5.1.0 "
13+ val dseVersion = " 5.1.1 "
1414
1515// Please make sure that following DSE version matches your DSE cluster version.
1616// SBT 0.13.13 or greater required because of a dependency resolution bug
17- libraryDependencies ++= Seq (
18- " com.datastax.dse" % " dse-spark-dependencies" % dseVersion % " provided" excludeAll (
19- ExclusionRule (" com.datastax.dse" , " dse-java-driver-core" ),
20- ExclusionRule (" org.apache.solr" , " solr-solrj" )
21- ),
22- " com.datastax.dse" % " dse-java-driver-core" % " 1.2.3" ,
23- " org.apache.solr" % " solr-solrj" % " 6.0.1"
24- )
17+ libraryDependencies += " com.datastax.dse" % " dse-spark-dependencies" % dseVersion % " provided"
2518
2619// Your dependencies
2720// libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1"
2821// libraryDependencies += "org.apache.commons" % "commons-csv" % "1.0"
2922
30- assemblyMergeStrategy in assembly := {
31- case " META-INF/io.netty.versions.properties" => MergeStrategy .discard
32- case x => (assemblyMergeStrategy in assembly).value(x)
33- }
34-
23+ assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false )
3524// assemblyShadeRules in assembly := Seq(
3625// ShadeRule.rename("org.apache.commons.csv.**" -> "shaded.org.apache.commons.csv.@1").inAll
3726// )
Original file line number Diff line number Diff line change 1- addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 0.14.3 " )
1+ addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 0.14.5 " )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ autoScalaLibrary := false
88
99scalaVersion := " 2.11.8"
1010
11- val sparkVersion = " 2.0.0 "
12- val connectorVersion = " 2.0.1 "
11+ val sparkVersion = " 2.0.2 "
12+ val connectorVersion = " 2.0.2 "
1313
1414// Please make sure that following dependencies have versions corresponding to the ones in your cluster.
1515// Note that spark-cassandra-connector should be provided with '--packages' flag to spark-submit command.
@@ -24,6 +24,7 @@ libraryDependencies ++= Seq(
2424// libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1"
2525// libraryDependencies += "org.apache.commons" % "commons-csv" % "1.0"
2626
27+ assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false )
2728// assemblyShadeRules in assembly := Seq(
2829// ShadeRule.rename("org.apache.commons.csv.**" -> "shaded.org.apache.commons.csv.@1").inAll
2930// )
Original file line number Diff line number Diff line change 1- addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 0.14.3 " )
1+ addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 0.14.5 " )
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ configurations {
2828 testCompile. exclude group : ' org.slf4j' , module : ' log4j-over-slf4j'
2929}
3030
31- def dseVersion = " 5.1.0 "
31+ def dseVersion = " 5.1.1 "
3232
3333def scalaVersion = " 2.11"
3434def scalaTestVersion = " 3.0.0"
35- def connectorVersion = " 2.0.1 "
35+ def connectorVersion = " 2.0.2 "
3636def cassandraVersion = " 3.2"
3737def jUnitVersion = " 4.12"
3838
@@ -41,13 +41,9 @@ dependencies {
4141 provided(" com.datastax.dse:dse-spark-dependencies:$dseVersion " ) {
4242 exclude group : ' org.slf4j' , module : ' slf4j-log4j12'
4343 exclude group : ' org.apache.cassandra'
44- exclude group : ' com.datastax.dse' , module : ' dse-java-driver-core'
45- exclude group : ' org.apache.solr' , module : ' solr-solrj'
4644 }
4745// assembly "org.apache.commons:commons-math3:3.6.1"
4846// assembly "org.apache.commons:commons-csv:1.0"
49- provided " com.datastax.dse:dse-java-driver-core:1.2.3"
50- provided " org.apache.solr:solr-solrj:6.0.1"
5147
5248 // Test Dependencies
5349 testCompile " com.datastax.spark:spark-cassandra-connector-embedded_$scalaVersion :$connectorVersion "
You can’t perform that action at this time.
0 commit comments