[stack@aa0-000-12 ~]$ ./hadoop-trunk/src/contrib/hbase/bin/hbase org.apache.hadoop.hbase.PerformanceEvaluation
Usage: java org.apache.hadoop.hbase.PerformanceEvaluation[--master=host ort] [--miniCluster] <command> <nclients>
Options:
master Specify host and port of HBase cluster master. If not present,
address is read from configuration
miniCluster Run the test on an HBaseMiniCluster
Command:
randomRead Run random read test
randomReadMem Run random read test where table is in memory
randomWrite Run random write test
sequentialRead Run sequential read test
sequentialWrite Run sequential write test
scan Run scan test
Args:
nclients Integer. Required. Total number of clients (and HRegionServers)
running: 1 <= value <= 500
Examples:
To run a single evaluation client:
$ bin/hbase org.apache.hadoop.hbase.PerformanceEvaluation sequentialWrite 1
可以看到可以测试随机读,随机写,顺序读,顺序写,全扫描等操作,操作也简单,command后面再加一个整数值(HRegionServers的数目),范围[1,500]
具体可以参见http://wiki.apache.org/hadoop/Hbase/PerformanceEvaluation
Usage: java org.apache.hadoop.hbase.PerformanceEvaluation[--master=host ort] [--miniCluster] <command> <nclients>
Options:
master Specify host and port of HBase cluster master. If not present,
address is read from configuration
miniCluster Run the test on an HBaseMiniCluster
Command:
randomRead Run random read test
randomReadMem Run random read test where table is in memory
randomWrite Run random write test
sequentialRead Run sequential read test
sequentialWrite Run sequential write test
scan Run scan test
Args:
nclients Integer. Required. Total number of clients (and HRegionServers)
running: 1 <= value <= 500
Examples:
To run a single evaluation client:
$ bin/hbase org.apache.hadoop.hbase.PerformanceEvaluation sequentialWrite 1
可以看到可以测试随机读,随机写,顺序读,顺序写,全扫描等操作,操作也简单,command后面再加一个整数值(HRegionServers的数目),范围[1,500]
具体可以参见http://wiki.apache.org/hadoop/Hbase/PerformanceEvaluation