Class LoadBalancerPerformanceEvaluation
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.master.balancer.LoadBalancerPerformanceEvaluation
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
Tool to test performance of different
LoadBalancer
implementations. Example command: $ bin/hbase
org.apache.hadoop.hbase.master.balancer.LoadBalancerPerformanceEvaluation -regions 1000 -servers
100 -load_balancer org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancer-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intprivate static final intprivate static org.apache.hbase.thirdparty.org.apache.commons.cli.Optionprivate LoadBalancerprivate Class<?>private Stringprivate static final org.slf4j.Loggerprivate static org.apache.hbase.thirdparty.org.apache.commons.cli.Optionprivate static org.apache.hbase.thirdparty.org.apache.commons.cli.Optionprivate intprivate intprivate List<RegionInfo>private Map<RegionInfo,ServerName> private List<ServerName>private Map<TableName,Map<ServerName, List<RegionInfo>>> Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.protected intdoWork()The "main function" of the toolprivate StringformatResults(String methodName, long timeMillis) private voidstatic voidprotected voidprocessOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) This method is called to process the options after they have been parsed.private voidMethods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
LOG
-
DEFAULT_NUM_REGIONS
- See Also:
-
NUM_REGIONS_OPT
-
DEFAULT_NUM_SERVERS
- See Also:
-
NUM_SERVERS_OPT
-
DEFAULT_LOAD_BALANCER
- See Also:
-
LOAD_BALANCER_OPT
-
numRegions
-
numServers
-
loadBalancerType
-
loadBalancerClazz
-
loadBalancer
-
servers
-
regions
-
regionServerMap
-
tableServerRegionMap
-
-
Constructor Details
-
LoadBalancerPerformanceEvaluation
public LoadBalancerPerformanceEvaluation()
-
-
Method Details
-
setupConf
-
generateRegionsAndServers
-
addOptions
Description copied from class:AbstractHBaseToolOverride this to add command-line options usingAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)and similar methods.- Specified by:
addOptionsin classAbstractHBaseTool
-
processOptions
Description copied from class:AbstractHBaseToolThis method is called to process the options after they have been parsed.- Specified by:
processOptionsin classAbstractHBaseTool
-
formatResults
-
doWork
Description copied from class:AbstractHBaseToolThe "main function" of the tool- Specified by:
doWorkin classAbstractHBaseTool- Throws:
Exception
-
main
- Throws:
IOException
-