Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit d5a77cc

Browse files
author
Matt Stump
committed
fix merge conflicts
2 parents eef63ad + 7783b0c commit d5a77cc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ libraryDependencies ++= Seq(
99
"org.apache.spark" %% "spark-core" % "1.1.0",
1010
"org.apache.spark" %% "spark-streaming" % "1.1.0",
1111
"org.apache.spark" %% "spark-sql" % "1.1.0",
12-
"com.datastax.spark" %% "spark-cassandra-connector" % "1.1.0",
12+
"com.datastax.spark" %% "spark-cassandra-connector" % "1.1.1",
1313
"org.apache.spark" %% "spark-streaming-kafka" % "1.1.0"
1414
)

src/main/scala/Test.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ object StreamConsumer {
113113
parsedRecords.saveToCassandra(Config.cassandraKeyspace, Config.cassandraCfEvents)
114114
flattenCounts.saveToCassandra(Config.cassandraKeyspace, Config.cassandraCfCounters)
115115

116+
// https://twitter.com/pwendell/status/580242656082546688
117+
sys.ShutdownHookThread {
118+
ssc.stop(true, true)
119+
}
120+
116121
ssc.start()
117122
ssc.awaitTermination()
118123
}

0 commit comments

Comments
 (0)