public final class NodeLabelsUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Set<java.lang.String> |
convertToStringSet(java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels) |
|
static java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
getNodeAttributesByName(java.util.Set<java.lang.String> attributeNames,
java.util.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(java.lang.String operation,
boolean isCentralizedNodeLabelConfiguration) |
public static java.util.Set<java.lang.String> convertToStringSet(java.util.Set<org.apache.hadoop.yarn.api.records.NodeLabel> nodeLabels)
public static void verifyCentralizedNodeLabelConfEnabled(java.lang.String operation,
boolean isCentralizedNodeLabelConfiguration)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> getNodeAttributesByName(java.util.Set<java.lang.String> attributeNames,
java.util.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–2025 Apache Software Foundation. All rights reserved.