You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Xiang Li (JIRA)" <ji...@apache.org> on 2018/02/02 00:36:10 UTC
[jira] [Created] (YARN-7874) Improve RSGroupBasedLoadBalancer#
Xiang Li created YARN-7874:
------------------------------
Summary: Improve RSGroupBasedLoadBalancer#
Key: YARN-7874
URL: https://issues.apache.org/jira/browse/YARN-7874
Project: Hadoop YARN
Issue Type: Improvement
Reporter: Xiang Li
private List<ServerName> filterServers(Collection<Address> servers,
Collection<ServerName> onlineServers) {
ArrayList<ServerName> finalList = new ArrayList<ServerName>();
for (Address server : servers) {
for(ServerName curr: onlineServers) {
if(curr.getAddress().equals(server)) {
finalList.add(curr);
}
}
}
return finalList;
}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org