-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild.sbt
43 lines (34 loc) · 1.11 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
38
39
40
41
42
import AssemblyKeys._
name := "spark-kafka-fraud-detection"
lazy val commonSettings = Seq(
version := "1.0",
organization := "com.jcalc",
scalaVersion := "2.10.4"
)
val sparkVersion = "1.1.0"
lazy val app = (project in file("."))
.settings(commonSettings: _*)
.settings(
// your settings here
)
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",
// Apache Commons Lang Utils
"org.apache.commons" % "commons-lang3" % "3.3.2",
"org.apache.hadoop" % "hadoop-client" % "2.4.0",
"org.apache.hadoop" % "hadoop-hdfs" % "2.4.0",
"org.apache.hbase" % "hbase-client" % "0.98.7-hadoop2",
"org.apache.hbase" % "hbase-common" % "0.98.7-hadoop2"
)
}
resolvers += "typesafe repo" at " http://repo.typesafe.com/typesafe/releases/"
packSettings
packMain := Map(
"feed" -> "com.jcalc.feed.CCStreamingFeed"
)