YARN-999. In case of long running tasks, reduce node resource should balloon out resource quickly by calling preemption API and suspending running task. Addendum. Contributed by Inigo Goiri.

This commit is contained in:
Giovanni Matteo Fumarola 2019-04-09 14:18:05 -07:00
parent 312d4d4cc5
commit 358e928622
2 changed files with 18 additions and 0 deletions

View File

@ -237,6 +237,15 @@ public RMContext getRMContext() {
public Resource getPhysicalResource() {
return null;
}
@Override
public boolean isUpdatedCapability() {
return false;
}
@Override
public void resetUpdatedCapability() {
}
}
public static RMNode newNodeInfo(String rackName, String hostName,

View File

@ -222,4 +222,13 @@ public RMContext getRMContext() {
public Resource getPhysicalResource() {
return null;
}
@Override
public boolean isUpdatedCapability() {
return false;
}
@Override
public void resetUpdatedCapability() {
}
}