public interface NodeLabelsStore extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.hadoop.conf.Configuration conf,
CommonNodeLabelsManager mgr) |
void |
recover()
Recover labels and node to labels mappings from store, but if
ignoreNodeToLabelsMappings is true then node to labels mappings should not
be recovered.
|
void |
removeClusterNodeLabels(Collection<String> labels)
Remove labels.
|
void |
storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> labels)
Store new labels.
|
void |
updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels)
Store node -> label.
|
void updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels) throws IOException
nodeToLabels - node to labels mapping.IOException - io error occur.void storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> labels) throws IOException
labels - labels.IOException - io error occur.void removeClusterNodeLabels(Collection<String> labels) throws IOException
labels - labels.IOException - io error occur.void recover()
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
IOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.void init(org.apache.hadoop.conf.Configuration conf,
CommonNodeLabelsManager mgr)
throws Exception
ExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.