hbase自帶的測試工具PerformanceEvaluation

edwardking888發表於2012-12-12
除了YCSB 對hbase效能測試外,還可以通過hbase自帶的效能測試工具可以對hbase叢集的效能有個大概的評估.
該工具的幫助如下:
hbase org.apache.hadoop.hbase.PerformanceEvaluation
Usage: java org.apache.hadoop.hbase.PerformanceEvaluation \
  [--miniCluster] [--nomapred] [--rows=ROWS]
 
Options:
 miniCluster     Run the test on an HBaseMiniCluster
 nomapred        Run multiple clients using threads (rather than use mapreduce)
 rows            Rows each client runs. Default: One million
 flushCommits    Used to determine if the test should flush the table.  Default: false
 writeToWAL      Set writeToWAL on puts. Default: True
 
Command:
 filterScan      Run scan test using a filter to find a specific row based on it's value (make sure to use --rows=20)
 randomRead      Run random read test
 randomSeekScan  Run random seek and scan 100 test
 randomWrite     Run random write test
 scan            Run scan test (read every row)
 scanRange10     Run random seek scan with both start and stop row (max 10 rows)
 scanRange100    Run random seek scan with both start and stop row (max 100 rows)
 scanRange1000   Run random seek scan with both start and stop row (max 1000 rows)
 scanRange10000  Run random seek scan with both start and stop row (max 10000 rows)
 sequentialRead  Run sequential read test
 sequentialWrite Run sequential write 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


幫助比較清晰,工具使用也很簡單
不過問題就是,這個工具只能給出總體情況,沒辦法讓我們瞭解持續的變化,沒辦法瞭解趨勢,要了解更多效能,可以藉助 YCSB  完成。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8183550/viewspace-750961/,如需轉載,請註明出處,否則將追究法律責任。

相關文章