- Compile the SampleProgram.java using Maven build tool.
- It generates Projectname-1.0-SNAPSHOT.jar in target directory of the project.
- Execute the generated jar as follows in terminal
- $./SPARK_HOME_DIR/bin/spark-submit –class “SampleProgram” Projectname-1.0-SNAPSHOT.jar