title: How to use "yarn application -stop "?
body: <p>I need to use <code>yarn application -stop</code> to gracefully stop my Spark application. According to <a href="https://issues.apache.org/jira/browse/YARN-10123" rel="nofollow noreferrer">this thread</a> we need to set</p>
  <blockquote>
  <p>yarn.application.admin.client.class.SPARK</p>
  </blockquote>
  <p>first. But <em>how and where to set it?</em></p>
  <p>Also in the thread, some framework implementation needs to be available, and again <em>how to specify it</em>? There's scare information about the guide available.</p>