@Override public Set<String> getClusterNodeLabels() throws YarnException, IOException { return rmClient.getClusterNodeLabels( GetClusterNodeLabelsRequest.newInstance()).getNodeLabels(); } }
@Override public Set<String> getClusterNodeLabels() throws YarnException, IOException { return rmClient.getClusterNodeLabels( GetClusterNodeLabelsRequest.newInstance()).getNodeLabels(); } }
Assert.assertTrue(response.getNodeLabels().containsAll( Arrays.asList("x", "y", "z")));
Assert.assertTrue(response.getNodeLabels().containsAll( Arrays.asList("x", "y")));