Database Reference
In-Depth Information
Example 2-12. sbt build file
name
:=
"learning-spark-mini-example"
version
:=
"0.0.1"
scalaVersion
:=
"2.10.4"
// additional libraries
libraryDependencies
++=
Seq
(
"org.apache.spark"
%%
"spark-core"
%
"1.2.0"
%
"provided"
)
Example 2-13. Maven build file
<project>
<groupId>
com.oreilly.learningsparkexamples.mini
</groupId>
<artifactId>
learning-spark-mini-example
</artifactId>
<modelVersion>
4.0.0
</modelVersion>
<name>
example
</name>
<packaging>
jar
</packaging>
<version>
0.0.1
</version>
<dependencies>
<dependency>
<!-- Spark dependency -->
<groupId>
org.apache.spark
</groupId>
<artifactId>
spark-core_2.10
</artifactId>
<version>
1.2.0
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<properties>
<java.version>
1.6
</java.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.1
</version>
<configuration>
<source>
${java.version}
</source>
<target>
${java.version}
</target>
</configuration>
</plugin>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>