public class NonAppendableFSNodeLabelStore extends FileSystemNodeLabelsStore
FileSystemNodeLabelsStore.SerializedLogType
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
DEFAULT_DIR_NAME, EDITLOG_FILENAME, MIRROR_FILENAME
mgr
Constructor and Description |
---|
NonAppendableFSNodeLabelStore() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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
|
init, loadFromMirror
setNodeLabelsManager
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FileSystemNodeLabelsStore
IOException
public void recover() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
NodeLabelsStore
recover
in class FileSystemNodeLabelsStore
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public void updateNodeToLabelsMappings(Map<org.apache.hadoop.yarn.api.records.NodeId,Set<String>> nodeToLabels) throws IOException
NodeLabelsStore
updateNodeToLabelsMappings
in class FileSystemNodeLabelsStore
IOException
public void storeNewClusterNodeLabels(List<org.apache.hadoop.yarn.api.records.NodeLabel> labels) throws IOException
NodeLabelsStore
storeNewClusterNodeLabels
in class FileSystemNodeLabelsStore
IOException
public void removeClusterNodeLabels(Collection<String> labels) throws IOException
NodeLabelsStore
removeClusterNodeLabels
in class FileSystemNodeLabelsStore
IOException
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.