"Client mode” in Apache Spark -
The behavior of the spark job depends on the “driver” component and here, the”driver” component of spark job will run on the machine from which job is submitted. Hence, this spark mode is basically called “client mode”.You will be able to see the detailed logs in the terminal.You will be able to terminate the job from the terminal itself.
“cluster mode” in Apache Spark
Similarly, here “driver” component of spark job will not run on the local machine from which job is submitted. Hence, this spark mode is basically “cluster mode”. In addition, here spark jobs will launch the “driver” component inside the clusterYou won't be able to see the detailed logs in the terminal.Since driver is not created in the Master itself, you won't be able to terminate the job from the terminal