Skip to content

Commit 9dc546f

Browse files
authored
Merge pull request #10 from riptano/DSP-13836
DSP-13836 bump versions of cassandra driver and netty
2 parents 7d0679f + a4e51a2 commit 9dc546f

File tree

6 files changed

+18
-12
lines changed

6 files changed

+18
-12
lines changed

bin/server_package.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#!/bin/bash -ue
1+
#!/bin/bash -e
2+
3+
set -x
24
# Script for packaging all the job server files to .tar.gz for Mesos or other single-image deploys
3-
WORK_DIR=/tmp/job-server
5+
WORK_DIR="$TMPDIR"/tmp/job-server
46

57
if [ "$#" -ne 1 ]; then
68
echo "Syntax: ${0} <Environment>"
@@ -50,8 +52,7 @@ pushd "${bin}/.." > /dev/null
5052
bin/manager_start.sh
5153
bin/setenv.sh
5254
${CONFIG_DIR}/${ENV}.conf
53-
config/shiro.ini
54-
config/log4j-server.properties"
55+
config/logback-server.xml"
5556

5657
rm -rf $WORK_DIR
5758
mkdir -p $WORK_DIR
@@ -62,7 +63,7 @@ popd > /dev/null
6263
pushd "${WORK_DIR}" > /dev/null
6364
TAR_FILE="${WORK_DIR}/job-server.tar.gz"
6465
rm -f "${TAR_FILE}"
65-
tar zcvf "${TAR_FILE}" ./*
66+
tar zcvf "${TAR_FILE}" *
6667
popd > /dev/null
6768

6869
echo "Created distribution at ${TAR_FILE}"

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ lazy val root = Project(id = "root", base = file("."))
8989
.disablePlugins(SbtScalariform).enablePlugins(DockerPlugin)
9090

9191
lazy val jobServerExtrasSettings = revolverSettings ++ Assembly.settings ++ publishSettings ++ Seq(
92-
libraryDependencies ++= sparkExtraDeps,
92+
libraryDependencies ++= sparkExtraDeps ++ sparkExtraDepsTest,
9393
// Extras packages up its own jar for testing itself
9494
test in Test <<= (test in Test).dependsOn(packageBin in Compile)
9595
.dependsOn(clean in Compile),

job-server/src/main/scala/spark/jobserver/WebApi.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ class WebApi(system: ActorSystem,
134134
.fold(100 * 1024)(config.getBytes(_).toInt)
135135

136136
val contextTimeout = SparkJobUtils.getContextCreationTimeout(config)
137+
val contextDeletionTimeout = SparkJobUtils.getContextDeletionTimeout(config)
137138
val bindAddress = config.getString("spark.jobserver.bind-address")
138139

139140
val logger = LoggerFactory.getLogger(getClass)
@@ -390,7 +391,7 @@ class WebApi(system: ActorSystem,
390391
// and currently running jobs will be lost. Use with care!
391392
path(Segment) { (contextName) =>
392393
val (cName, _) = determineProxyUser(config, authInfo, contextName)
393-
val future = supervisor ? StopContext(cName)
394+
val future = (supervisor ? StopContext(cName))(contextDeletionTimeout.seconds)
394395
respondWithMediaType(MediaTypes.`application/json`) { ctx =>
395396
future.map {
396397
case ContextStopped => ctx.complete(StatusCodes.OK, successMap("Context stopped"))

project/Dependencies.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ object Dependencies {
4242
)
4343
)
4444

45+
lazy val sparkExtraDepsTest = Seq(
46+
"com.google.guava" % "guava" % "16.0.1" % Test force()
47+
)
48+
4549
lazy val sparkPythonDeps = Seq(
4650
"net.sf.py4j" % "py4j" % py4j,
4751
"io.spray" %% "spray-json" % sprayJson % Test

project/Versions.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import scala.util.Properties.isJavaAtLeast
22

33
object Versions {
4-
lazy val spark = sys.env.getOrElse("SPARK_VERSION", "2.1.0")
4+
lazy val spark = sys.env.getOrElse("SPARK_VERSION", "2.2.0")
55

66
lazy val akka = "2.4.9"
7-
lazy val cassandra = "3.0.3"
7+
lazy val cassandra = "3.2.0"
88
lazy val cassandraUnit = "2.2.2.1"
99
lazy val commons = "1.4"
1010
lazy val flyway = "3.2.1"
@@ -15,12 +15,12 @@ object Versions {
1515
lazy val logback = "1.0.7"
1616
lazy val mesos = sys.env.getOrElse("MESOS_VERSION", "1.0.0-2.0.89.ubuntu1404")
1717
lazy val metrics = "2.2.0"
18-
lazy val netty = "4.0.42.Final"
18+
lazy val netty = "4.0.44.Final"
1919
lazy val postgres = "9.4.1209"
2020
lazy val py4j = "0.10.4"
2121
lazy val scalaTest = "2.2.6"
2222
lazy val scalatic = "2.2.6"
23-
lazy val shiro = "1.2.4"
23+
lazy val shiro = "1.3.2"
2424
lazy val slick = "3.1.1"
2525
lazy val spray = "1.3.3"
2626
lazy val sprayJson = "1.3.2"

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ addSbtPlugin("io.spray" % "sbt-revolver" % "0.8.0") // For quick restarts
66

77
addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.6.0")
88

9-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")
9+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
1010

1111
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")
1212

0 commit comments

Comments
 (0)