public final class NodeLabelsUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
convertToStringSet(Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels) |
static Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getNodeAttributesByName(Set<String> attributeNames,
Set<org.apache.hadoop.yarn.api.records.NodeAttribute> clusterNodeAttributes)
Returns a set of node attributes whose name exists in the provided
attributeNames list. |
static void |
verifyCentralizedNodeLabelConfEnabled(String operation,
boolean isCentralizedNodeLabelConfiguration) |
public static Set<String> convertToStringSet(Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
public static void verifyCentralizedNodeLabelConfEnabled(String operation, boolean isCentralizedNodeLabelConfiguration) throws IOException
IOExceptionpublic static Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getNodeAttributesByName(Set<String> attributeNames, Set<org.apache.hadoop.yarn.api.records.NodeAttribute> clusterNodeAttributes)
attributeNames list.attributeNames - For this given list of attribute names get the
cluster NodeAttributesclusterNodeAttributes - set of node AttributesCopyright © 2008–2022 Apache Software Foundation. All rights reserved.