use of org.apache.hadoop.yarn.api.protocolrecords.FailApplicationAttemptRequest in project hadoop by apache.
the class MockRM method failApplicationAttempt.
public FailApplicationAttemptResponse failApplicationAttempt(ApplicationAttemptId attemptId) throws Exception {
ApplicationClientProtocol client = getClientRMService();
FailApplicationAttemptRequest req = FailApplicationAttemptRequest.newInstance(attemptId);
FailApplicationAttemptResponse response = client.failApplicationAttempt(req);
drainEventsImplicitly();
return response;
}
use of org.apache.hadoop.yarn.api.protocolrecords.FailApplicationAttemptRequest in project hadoop by apache.
the class YarnClientImpl method failApplicationAttempt.
@Override
public void failApplicationAttempt(ApplicationAttemptId attemptId) throws YarnException, IOException {
LOG.info("Failing application attempt " + attemptId);
FailApplicationAttemptRequest request = Records.newRecord(FailApplicationAttemptRequest.class);
request.setApplicationAttemptId(attemptId);
rmClient.failApplicationAttempt(request);
}
Aggregations