All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
boolean |
canPlaceFavoredNodes() |
List<ServerName> |
generateFavoredNodes(RegionInfo hri) |
Map<RegionInfo,List<ServerName>> |
generateFavoredNodesRoundRobin(Map<ServerName,List<RegionInfo>> assignmentMap,
List<RegionInfo> regions) |
ServerName |
generateMissingFavoredNode(List<ServerName> favoredNodes) |
ServerName |
generateMissingFavoredNode(List<ServerName> favoredNodes,
List<ServerName> excludeNodes) |
static byte[] |
getFavoredNodes(List<ServerName> serverAddrList) |
static String |
getFavoredNodesAsString(List<ServerName> nodes) |
static ServerName[] |
getFavoredNodesList(byte[] favoredNodes) |
protected String |
getOneRandomRack(Set<String> skipRackSet) |
protected ServerName |
getOneRandomServer(String rack,
Set<ServerName> skipServerSet)
Gets a random server from the specified rack and skips anything specified.
|
ServerName[] |
getSecondaryAndTertiary(RegionInfo regionInfo,
ServerName primaryRS) |
void |
initialize() |
void |
placePrimaryRSAsRoundRobin(Map<ServerName,List<RegionInfo>> assignmentMap,
Map<RegionInfo,ServerName> primaryRSMap,
List<RegionInfo> regions) |
Map<RegionInfo,ServerName[]> |
placeSecondaryAndTertiaryRS(Map<RegionInfo,ServerName> primaryRSMap) |
Map<RegionInfo,ServerName[]> |
placeSecondaryAndTertiaryWithRestrictions(Map<RegionInfo,ServerName> primaryRSMap)
For regions that share the primary, avoid placing the secondary and tertiary
on a same RS.
|
static void |
updateMetaWithFavoredNodesInfo(Map<RegionInfo,List<ServerName>> regionToFavoredNodes,
org.apache.hadoop.conf.Configuration conf)
Update meta table with favored nodes info
|
static void |
updateMetaWithFavoredNodesInfo(Map<RegionInfo,List<ServerName>> regionToFavoredNodes,
Connection connection)
Update meta table with favored nodes info
|