public final class YarnDriverRuntimeRestartManager extends Object implements DriverRuntimeRestartManager
| Modifier and Type | Method and Description |
|---|---|
RestartEvaluators |
getPreviousEvaluators()
Used by
DriverRestartManager. |
int |
getResubmissionAttempts()
Determines the number of times the Driver has been submitted based on the container ID environment
variable provided by YARN.
|
void |
informAboutEvaluatorFailures(Set<String> evaluatorIds)
Calls the appropriate handler via REEFEventHandlers, which is a runtime specific implementation
of the YARN runtime.
|
void |
recordAllocatedEvaluator(String id) |
void |
recordRemovedEvaluator(String id) |
public int getResubmissionAttempts()
getResubmissionAttempts in interface DriverRuntimeRestartManagerpublic void recordAllocatedEvaluator(String id)
recordAllocatedEvaluator in interface DriverRuntimeRestartManagerpublic void recordRemovedEvaluator(String id)
recordRemovedEvaluator in interface DriverRuntimeRestartManagerpublic RestartEvaluators getPreviousEvaluators()
DriverRestartManager.
Gets the list of previous containers from the resource manager,
compares that list to the YarnDriverRuntimeRestartManager's own list based on the evalutor preserver,
and determine which evaluators are alive and which have failed during restart.getPreviousEvaluators in interface DriverRuntimeRestartManagerEvaluatorRestartInfo for evaluators that have either failed or survived
driver restart.public void informAboutEvaluatorFailures(Set<String> evaluatorIds)
informAboutEvaluatorFailures in interface DriverRuntimeRestartManagerevaluatorIds - the set of evaluator IDs of failed evaluators during restart.Copyright © 2016 The Apache Software Foundation. All rights reserved.