yz-ycsb压测hbase记录

环境准备

  • 数据准备:usertable 100 个region 并灌入数据。

                  hbase shell>n_splits=100
                  hbase shell> create 'usertable',{NAME=>'cf',DATA_BLOCK_ENCODING=>'DIFF',COMPRESSION=>'LZO'},{SPLITS => (1...n_splits).map{|i| "user#{1000+i*(9999-1000)/n_splits}"}}

                  

  • 工具准备:yz-ycsb
  • 命令准备:
    1. 只读装载数据: nohup bin/ycsb load hbase12 -P workloads/nocache_scan_r2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    2. 只读压测:nohup bin/ycsb run hbase12 -P workloads/nocache_scan_r2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    3. 只写装载数据:nohup bin/ycsb load hbase12 -P workloads/sync_batch_w2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    4. 只写压测: nohup bin/ycsb run hbase12 -P workloads/sync_batch_w2 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    5. 读写装载数据:nohup bin/ycsb load hbase12 -P workloads/mix_rw_1 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &
    6. 读写 nohup bin/ycsb run hbase12 -P workloads/mix_rw_1 -threads 64 -p columnfamily=cf -p fieldlength=256 -p hdrhistogram.percentiles=95,99,99.9,99.99 >> result.txt &

相关文章

超详细的记录了HBase 集群搭建的整个过程,以及搭建过程出现...
头歌 HBase(相关的五个实验)
1.创建一个学生信息表,用来存储学生的姓名(姓名作为行键,...
大数据课程综合实验案例1 案例简介1.1 案例目的1.2 适用对象...
HBase从浅入深,(初级)什么是HBase,模型,NOSQL,架构,n...
Hadoop之Hbase安装和配置