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
  attributeNameslist. | 
| 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–2023 Apache Software Foundation. All rights reserved.