@Override public List<NodeLabel> getClusterNodeLabels() throws YarnException, IOException { return client.getClusterNodeLabels(); }
@Override public Set<String> getClusterNodeLabels() throws YarnException, IOException { return client.getClusterNodeLabels(); } }
void printClusterNodeLabels() throws YarnException, IOException { List<NodeLabel> nodeLabels = null; if (accessLocal) { nodeLabels = new ArrayList<>(getNodeLabelManagerInstance(getConf()).getClusterNodeLabels()); } else { nodeLabels = new ArrayList<>(client.getClusterNodeLabels()); } sysout.println(String.format("Node Labels: %s", StringUtils.join(nodeLabels.iterator(), ","))); }
void printClusterNodeLabels() throws YarnException, IOException { List<NodeLabel> nodeLabels = null; if (accessLocal) { nodeLabels = new ArrayList<>(getNodeLabelManagerInstance(getConf()).getClusterNodeLabels()); } else { nodeLabels = new ArrayList<>(client.getClusterNodeLabels()); } sysout.println(String.format("Node Labels: %s", StringUtils.join(nodeLabels.iterator(), ","))); }
void printClusterNodeLabels() throws YarnException, IOException { Set<String> nodeLabels = null; if (accessLocal) { nodeLabels = getNodeLabelManagerInstance(getConf()).getClusterNodeLabels(); } else { nodeLabels = client.getClusterNodeLabels(); } sysout.println(String.format("Node Labels: %s", StringUtils.join(sortStrSet(nodeLabels).iterator(), ","))); }
void printClusterNodeLabels() throws YarnException, IOException { Set<String> nodeLabels = null; if (accessLocal) { nodeLabels = getNodeLabelManagerInstance(getConf()).getClusterNodeLabels(); } else { nodeLabels = client.getClusterNodeLabels(); } sysout.println(String.format("Node Labels: %s", StringUtils.join(sortStrSet(nodeLabels).iterator(), ","))); }