How to kill spark application on standalone cluster
<p>I tried 3 ways to kill it, but unsuccessful.</p>

<ol>
<li>Clicked <code>kill</code> link on MasterWebUI, sometimes processes of the master and works had been downed.</li>
<li>spark-submit --master spark://xx:7077 --kill app-20160920095657-0000, the master url is correct, but throwing exception <code>Exception in thread "main" org.apache.spark.deploy.rest.SubmitRestConnectionException: Unable to connect to server
at org.apache.spark.deploy.rest.RestSubmissionClient$$anonfun$killSubmission$3.apply(RestSubmissionClient.scala:130)</code></li>
<li>spark-class org.apache.spark.deploy.Client kill spark://xx:7077 20160920095657-0000, only output <code>Use ./bin/spark-submit with "--master spark://host:port"</code> and finished in a short time.</li>
</ol>