Get started with Apache Spark and Maven
Prerequisites
You need the following:
- Git
- Java 8.0 or 11 You can download the Java SE Development Kit software from http://www.oracle.com/technetwork/java/javase/downloads/ or use the OpenJDK version from https://openjdk.java.net/install/index.html.
- Apache Maven If you need to install Maven, go to http://maven.apache.org/ to download and install it.
Build the project
Clone the example project and use Maven to build it.
To build your Maven project from the command line, open a terminal or command prompt window, navigate to your project directory, enter or paste the following command, then press Enter or Return.
mvn package
This creates a single .jar file (JAR) in the target directory. This JAR contains all the dependencies specified in the pom.xml file.