/// <summary>Kill a submitted application by sending a call to the ASM</summary> /// <param name="appId">Application Id to be killed.</param> /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> private void ForceKillApplication(ApplicationId appId) { // TODO clarify whether multiple jobs with the same app id can be submitted and be running at // the same time. // If yes, can we kill a particular attempt only? // Response can be ignored as it is non-null on success or // throws an exception in case of failures yarnClient.KillApplication(appId); }
/// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/> /// <exception cref="System.IO.IOException"/> public override void KillApplication(ApplicationId applicationId) { client.KillApplication(applicationId); }
/// <exception cref="System.Exception"/> public virtual void TestForceKillApplicationOnHA() { client.KillApplication(cluster.CreateFakeAppId()); }