public abstract class NodeResourceUpdaterPlugin extends Object
NodeStatusUpdater| Constructor and Description |
|---|
NodeResourceUpdaterPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleUpdatedResourceFromRM(org.apache.hadoop.yarn.api.records.Resource newResource)
This method will be called when the node's resource is loaded from
dynamic-resources.xml in ResourceManager.
|
abstract void |
updateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res)
Update configured resource for the given component.
|
public abstract void updateConfiguredResource(org.apache.hadoop.yarn.api.records.Resource res)
throws org.apache.hadoop.yarn.exceptions.YarnException
res - resource passed in by external mododule (such as
NodeStatusUpdaterorg.apache.hadoop.yarn.exceptions.YarnException - when any issue happens.public void handleUpdatedResourceFromRM(org.apache.hadoop.yarn.api.records.Resource newResource)
throws org.apache.hadoop.yarn.exceptions.YarnException
newResource - newResource reported by RMorg.apache.hadoop.yarn.exceptions.YarnException - when any mismatch between NM/RMCopyright © 2022 Apache Software Foundation. All rights reserved.