-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
39 lines (27 loc) · 1.01 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
name := "spark-memanalysis"
version := "0.2-SNAPSHOT"
organization := "edu.berkeley.cs.amplab"
scalaVersion := "2.10.4"
mainClass := Some("edu.berkeley.cs.amplab.sparkmem.Main")
libraryDependencies ++= Seq(
"org.apache.spark" % "spark-core_2.10" % "1.4.0-memanalysis-SNAPSHOT",
"org.json4s" %% "json4s-jackson" % "3.2.11",
"org.slf4j" % "slf4j-log4j12" % "1.7.12"
)
{
val defaultHadoopVersion = "1.0.4"
val hadoopVersion = scala.util.Properties.envOrElse("SPARK_HADOOP_VERSION", defaultHadoopVersion)
libraryDependencies += "org.apache.hadoop" % "hadoop-client" % hadoopVersion
}
resolvers += Resolver.mavenLocal
resolvers += "charles-cs-berkeley-spark-memanalysis" at "https://www.eecs.berkeley.edu/~charles/spark-deploy/"
fork in run := true
javaOptions in run += "-Xmx8g"
scalacOptions ++= Seq("-optimize")
assemblyMergeStrategy in assembly := {
case x @ PathList("META-INF", _*) => {
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
case _ => MergeStrategy.first
}