hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiang Li (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-7874) Improve RSGroupBasedLoadBalancer#
Date Fri, 02 Feb 2018 00:36:10 GMT
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


Mime
View raw message