-
Notifications
You must be signed in to change notification settings - Fork 50
/
build.sbt
37 lines (29 loc) · 1.06 KB
/
build.sbt
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
30
31
32
33
34
35
36
37
name := "blog-spark-streaming-log-aggregation"
organization := "com.chimpler"
version := "1.0"
scalaVersion := "2.10.4"
val sparkVersion = "1.0.0"
libraryDependencies <<= scalaVersion {
scala_version => Seq(
// Spark and Spark Streaming
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-streaming" % sparkVersion,
"org.apache.spark" %% "spark-streaming-kafka" % sparkVersion,
// Kafka
"org.apache.kafka" %% "kafka" % "0.8.1.1",
// Algebird (used here for HyperLogLog)
"com.twitter" %% "algebird-core" % "0.6.0",
// for serialization of case class
"com.novus" %% "salat" % "1.9.8",
// MongoDB
"org.reactivemongo" %% "reactivemongo" % "0.10.0",
// Joda dates for Scala
"com.github.nscala-time" %% "nscala-time" % "1.2.0"
)
}
resolvers += "typesafe repo" at " http://repo.typesafe.com/typesafe/releases/"
packSettings
packMain := Map(
"generator" -> "com.chimpler.sparkstreaminglogaggregation.RandomLogGenerator",
"aggregator" -> "com.chimpler.sparkstreaminglogaggregation.LogAggregator"
)