Let's try to look at the differences between client and cluster mode of Spark.
Client:
When running Spark in the client mode, the SparkContext and Driver program run external to the cluster; for example, from your laptop. Local mode is only for the case when you do not want to use a cluster and in...