在 CentOS 上进行 HBase 性能测试

一 工具选择与场景
二 环境准备与建表
wget https://github.com/brianfrankcooper/YCSB/releases/download/0.17.0/ycsb-hbase20-binding-0.17.0.tar.gzsudo tar -xzf ycsb-hbase20-binding-0.17.0.tar.gz -C /optexport YCSB_HOME="/opt/ycsb-hbase20-binding-0.17.0"cat << 'EOF' | hbase shelldisable 'usertable'drop 'usertable'n_splits = 30# 示例:10 × RS 数create 'usertable', 'cf', {SPLITS => (1..n_splits).map { |i| "user#{1000 + i * (9999 - 1000) / n_splits}" }}describe 'usertable'EOF三 使用 YCSB 进行测试
nohup $YCSB_HOME/bin/ycsb load hbase20 -cp /etc/hbase/conf/ -p columnfamily=cf -P $YCSB_HOME/workloads/workloada -p recordcount=10000000 -p operationcount=10000000 -threads 16 -s > load.log 2>&1 &nohup $YCSB_HOME/bin/ycsb run hbase20 -cp /etc/hbase/conf/ -p columnfamily=cf -P $YCSB_HOME/workloads/workloadb -p operationcount=10000000 -threads 16 -s > run.log 2>&1 &四 使用 HBase PE 进行快速自检
hbase pe -Dmapreduce.output.fileoutputformat.compress=true -Dmapreduce.task.timeout=60000 --rows=10000000 --size=10 --nomapred五 结果分析与注意事项