public static List<ServerName> getFavoredNodeList(String favoredNodesStr) {
    String[] favoredNodesArray = StringUtils.split(favoredNodesStr, ",");
    if (favoredNodesArray == null) return null;

    List<ServerName> serverList = new ArrayList<>();
    for (String hostNameAndPort : favoredNodesArray) {
      serverList.add(ServerName.valueOf(hostNameAndPort, ServerName.NON_STARTCODE));
    }
    return serverList;
  }
@param favoredNodesStr The String of favored nodes
@return the list of ServerName for the byte array of favored nodes.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/RegionPlacementMaintainer.java