<p>I'm new to apache spark and I'm trying to run a spark job using spark-submit on my Kubernetes cluster. I was wondering if there's a right way to stop spark jobs once the driver and executor pods are spawned? Would deleting the pods themselves be enough?</p>

<p>Thanks!</p>

Joshua Villanueva
<p>When you will delete <code>executor</code> it will be recreated again and spark application will work. However if you will delete <code>driver</code> pod it will stop application. </p>

<blockquote>
  <p>So killing driver pod is actually the way to stop the Spark
  Application during the execution.</p>
</blockquote>

<p>As you are new to <code>Spark</code> and you want to run it on Kubernetes, you should check <a href="https://weidongzhou.wordpress.com/2018/04/29/running-spark-on-kubernetes/" rel="nofollow noreferrer">this</a> tutorial.</p>
