If you build the application "Line Count" (
mvn package
) it will produce the jar
line-count-0.0.1-SNAPSHOT.jar
Before running the application, let's create a simple text file:
-
Running the application using local mode:
-
Running the application using cluster mode (Deploy Mode: client):
-
Running the application using cluster mode (Deploy Mode: cluster):
Using "cluster" mode, Spark will launch the driver inside the cluster.