-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
38 lines (32 loc) · 1.17 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
ThisBuild / scalaVersion := "2.12.14"
ThisBuild / organization := "io.dpape"
ThisBuild / useLog4J := true
val sparkVersion = "3.3.0"
val scalaMajorVersion = "2.12"
val scalaTestVersion = "3.2.15"
val kafkaVersion = "2.4.0"
lazy val root = (project in file("."))
.settings(
name := "nyc-ml-app",
)
resolvers ++= Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
libraryDependencies ++= Seq(
// spark
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.apache.spark" %% "spark-mllib" % sparkVersion,
"org.apache.spark" %% "spark-streaming" % sparkVersion,
// scala test
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"org.scalatest" %% "scalatest-funsuite" % scalaTestVersion % "test",
// streaming-kafka
"org.apache.spark" % s"spark-sql-kafka-0-10_${scalaMajorVersion}" % sparkVersion,
"org.apache.spark" %% "spark-streaming-kafka-0-10" % sparkVersion,
// kafka
"org.apache.kafka" %% "kafka" % kafkaVersion,
"org.apache.kafka" % "kafka-streams" % kafkaVersion,
// elasticsearch
"org.elasticsearch" %% "elasticsearch-spark-30" % "8.9.0"
)