public void killApplication(final String applicationId) throws IOException {
    final String url = this.getApplicationURL(applicationId) + "/state";
    final HttpPut put = preparePut(url);
    put.setEntity(new StringEntity(APPLICATION_KILL_MESSAGE, ContentType.APPLICATION_JSON));
    this.httpClient.execute(put, this.httpClientContext);
  }
public void killApplication ( final String applicationId ) throws IOException { final String url = this . getApplicationURL ( applicationId ) + "/state" ; final HttpPut put = preparePut ( url ) ; put . setEntity ( new StringEntity ( APPLICATION_KILL_MESSAGE , ContentType . APPLICATION_JSON ) ) ; this . httpClient . execute ( put , this . httpClientContext ) ; }
Issues a YARN kill command to the application.

@param applicationId