public void killApplication(String applicationId) throws IOException, YarnException {
  log.info("killing job with application id: " + applicationId);
  yarnClient.killApplication(getApplicationIDFromString(applicationId));
}

public void killApplication ( String applicationId ) throws IOException , YarnException { log . info ( "killing job with application id: " + applicationId ) ; yarnClient . killApplication ( getApplicationIDFromString ( applicationId ) ) ; }
this function kills an application given the applicationid
