org.apache.hadoop.hbase.favored.FavoredNodesPlan
SnapshotOfRegionAssignmentFromMeta.getExistingAssignmentPlan()
Get the favored nodes plan
org.apache.hadoop.hbase.favored.FavoredNodesPlan
RegionPlacementMaintainer.getNewAssignmentPlan()
void
RegionPlacementMaintainer.checkDifferencesWithOldPlan(Map<org.apache.hadoop.hbase.TableName,Integer> movesPerTable,
Map<String,Map<String,Float>> regionLocalityMap,
org.apache.hadoop.hbase.favored.FavoredNodesPlan newPlan)
Compares two plans and check whether the locality dropped or increased (prints the information
as a string) also prints the baseline locality
void
AssignmentVerificationReport.fillUpDispersion(org.apache.hadoop.hbase.TableName tableName,
org.apache.hadoop.hbase.master.SnapshotOfRegionAssignmentFromMeta snapshot,
org.apache.hadoop.hbase.favored.FavoredNodesPlan newPlan)
Use this to project the dispersion scores
RegionPlacementMaintainer.getRegionsMovement(org.apache.hadoop.hbase.favored.FavoredNodesPlan newPlan)
Return how many regions will move per table since their primary RS will change
static void
RegionPlacementMaintainer.printAssignmentPlan(org.apache.hadoop.hbase.favored.FavoredNodesPlan plan)
Print the assignment plan to the system output stream
void
RegionPlacementMaintainer.printDispersionScores(org.apache.hadoop.hbase.TableName table,
org.apache.hadoop.hbase.master.SnapshotOfRegionAssignmentFromMeta snapshot,
int numRegions,
org.apache.hadoop.hbase.favored.FavoredNodesPlan newPlan,
boolean simplePrint)
void
RegionPlacementMaintainer.updateAssignmentPlan(org.apache.hadoop.hbase.favored.FavoredNodesPlan plan)
void
RegionPlacementMaintainer.updateAssignmentPlanToMeta(org.apache.hadoop.hbase.favored.FavoredNodesPlan plan)
Update the assignment plan into hbase:meta