Search in sources :

Example 1 with DisabledBlacklistManager

use of org.apache.hadoop.yarn.server.resourcemanager.blacklist.DisabledBlacklistManager in project hadoop by apache.

the class RMAppImpl method createNewAttempt.

private void createNewAttempt(ApplicationAttemptId appAttemptId) {
    BlacklistManager currentAMBlacklistManager;
    if (currentAttempt != null) {
        // Transfer over the blacklist from the previous app-attempt.
        currentAMBlacklistManager = currentAttempt.getAMBlacklistManager();
    } else {
        if (amBlacklistingEnabled && !submissionContext.getUnmanagedAM()) {
            currentAMBlacklistManager = new SimpleBlacklistManager(RMServerUtils.getApplicableNodeCountForAM(rmContext, conf, getAMResourceRequest()), blacklistDisableThreshold);
        } else {
            currentAMBlacklistManager = new DisabledBlacklistManager();
        }
    }
    RMAppAttempt attempt = new RMAppAttemptImpl(appAttemptId, rmContext, scheduler, masterService, submissionContext, conf, amReq, this, currentAMBlacklistManager);
    attempts.put(appAttemptId, attempt);
    currentAttempt = attempt;
}
Also used : DisabledBlacklistManager(org.apache.hadoop.yarn.server.resourcemanager.blacklist.DisabledBlacklistManager) BlacklistManager(org.apache.hadoop.yarn.server.resourcemanager.blacklist.BlacklistManager) SimpleBlacklistManager(org.apache.hadoop.yarn.server.resourcemanager.blacklist.SimpleBlacklistManager) RMAppAttempt(org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttempt) DisabledBlacklistManager(org.apache.hadoop.yarn.server.resourcemanager.blacklist.DisabledBlacklistManager) RMAppAttemptImpl(org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl) SimpleBlacklistManager(org.apache.hadoop.yarn.server.resourcemanager.blacklist.SimpleBlacklistManager)

Aggregations

BlacklistManager (org.apache.hadoop.yarn.server.resourcemanager.blacklist.BlacklistManager)1 DisabledBlacklistManager (org.apache.hadoop.yarn.server.resourcemanager.blacklist.DisabledBlacklistManager)1 SimpleBlacklistManager (org.apache.hadoop.yarn.server.resourcemanager.blacklist.SimpleBlacklistManager)1 RMAppAttempt (org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttempt)1 RMAppAttemptImpl (org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl)1