code: 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);
    }
docs: Issues a YARN kill command to the application.
  
  @param applicationId