Skip to content

Commit 9f7ae32

Browse files
sreeraamannoorul
authored andcommitted
Fixing Guava 1635 issue with spark cassandra connector + other minor … (spark-jobserver#903)
* Fixing Guava 1635 issue with spark cassandra connector + other minor fixes * Excluded .DS_Store * Fixed changes as requested
1 parent 4484245 commit 9f7ae32

File tree

9 files changed

+15
-7
lines changed

9 files changed

+15
-7
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ test-reports/
99
.idea*
1010
.vagrant
1111
*.pyc
12+
.DS_Store
1213

1314
# ignore deployment configs
1415
config/*.conf

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ lazy val dockerSettings = Seq(
137137
val sparkBuild = s"spark-${Versions.spark}"
138138
val sparkBuildCmd = scalaBinaryVersion.value match {
139139
case "2.11" =>
140-
"./make-distribution.sh -Dscala-2.11 -Phadoop-2.7 -Phive"
140+
Versions.spark match {
141+
case s if s.startsWith("1") => {"./make-distribution.sh -Dscala-2.11 -Phadoop-2.7 -Phive"}
142+
case _ => {"./dev/make-distribution.sh -Dscala-2.11 -Phadoop-2.7 -Phive"}
143+
}
141144
case other => throw new RuntimeException(s"Scala version $other is not supported!")
142145
}
143146

job-server/config/docker.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ deploy {
6666
}
6767

6868
# Note that you can use this file to define settings not only for job server,
69-
# but for your Spark jobs as well. Spark job configuration merges with this configuration file as defaults.
69+
# but for your Spark jobs as well. Spark job configuration merges with this configuration file as defaults.

job-server/config/local.sh.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
# Environment and deploy file
24
# For use with bin/server_deploy, bin/server_package etc.
35
DEPLOY_HOSTS="hostname1.net

project/Assembly.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import sbtassembly.AssemblyPlugin.autoImport._
55
object Assembly {
66
lazy val settings = Seq(
77
assemblyJarName in assembly := "spark-job-server.jar",
8-
// uncomment below to exclude tests
8+
// uncomment below to exclude tests
99
// test in assembly := {},
1010
assemblyExcludedJars in assembly <<= (fullClasspath in assembly) map { _ filter { cp =>
1111
List("servlet-api", "guice-all", "junit", "uuid",
1212
"jetty", "jsp-api-2.0", "antlr", "avro", "slf4j-log4j", "log4j-1.2",
13-
"scala-actors", "spark", "commons-cli", "stax-api", "mockito").exists(cp.data.getName.startsWith(_))
13+
"scala-actors", "commons-cli", "stax-api", "mockito").exists(cp.data.getName.startsWith(_))
1414
} },
1515
// We don't need the Scala library, Spark already includes it
1616
assembleArtifact in assemblyPackageScala := false,

project/Dependencies.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ object Dependencies {
5858
"org.flywaydb" % "flyway-core" % flyway
5959
)
6060

61+
62+
6163
lazy val cassandraDeps = Seq(
62-
"com.datastax.cassandra" % "cassandra-driver-core" % cassandra,
63-
"com.datastax.cassandra" % "cassandra-driver-mapping" % cassandra
64+
"com.datastax.spark" %% "spark-cassandra-connector" % cassandraConnector
6465
)
6566

6667
lazy val logbackDeps = Seq(

project/Versions.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ object Versions {
2828
lazy val spray = "1.3.3"
2929
lazy val sprayJson = "1.3.2"
3030
lazy val typeSafeConfig = if (isJavaAtLeast("1.8")) "1.3.0" else "1.2.1"
31+
lazy val cassandraConnector = "2.0.5"
3132
}

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.3")
1818

1919
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.3")
2020

21-
addSbtPlugin("se.marcuslonnberg" % "sbt-docker" % "1.4.0")
21+
addSbtPlugin("se.marcuslonnberg" % "sbt-docker" % "1.4.1")

0 commit comments

Comments
 (0)