concept local mode in category spark

This is an excerpt from Manning's book Spark in Action, Second Edition.
In order for you to be able to run the example in this chapter without setting up a full cluster, I specified
local
as the value for the master because you are running Spark in local mode. If you had a cluster, you would give the address of this cluster. You will learn more about clusters in chapters 5 and 6.
Behind the scenes, Spark starts the required machinery to stand up a master and worker. In local mode, you will not have to submit a JAR file; Spark will set the right class path, so you do not even have to deal with JAR hell .
To start Spark in local mode, as you have done in previous examples, you simply start a session by specifying the master node to be local:
.master( "local" )