-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
30 lines (22 loc) · 1.07 KB
/
build.sbt
File metadata and controls
30 lines (22 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
resolvers += "bintray-spark-packages" at "https://dl.bintray.com/spark-packages/maven/"
name := "spark-streaming-hints"
version := "0.1"
scalaVersion := "2.11.8"
val sparkVersion = "2.4.3"
// sparkComponents ++= Seq("sql", "streaming")
// spDependencies += "com.datastax.spark/spark-cassandra-connector_2.11:2.4.0"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.apache.spark" %% "spark-streaming" % sparkVersion,
"org.apache.spark" %% "spark-streaming-kafka" % "1.6.3", // For Kafka
"com.datastax.spark" %% "spark-cassandra-connector" % "2.4.0" // For Cassandra
)
assemblyMergeStrategy in assembly := {
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
case "log4j.properties" => MergeStrategy.discard
case m if m.toLowerCase.startsWith("meta-inf/services/") => MergeStrategy.filterDistinctLines
case "reference.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}