ycsb 测试Hbase性能
下载 github: https://github.com/brianfrankcooper/YCSB/releases/tag/0.10.0 wget https://github.com/brianfrankcooper/YCSB/archive/0.10.0.tar.gz tar xvf 0.10.0.tar.gz 编译: cd YCSB-0.10.0/ 编译所有的nosql mvn clean package 只编译Hbase mvn -pl com.yahoo.ycsb:hbase10-binding -am clean package 安装成功。 cd hbase10/target/ tar xvf ycsb-hbase10-binding-0.10.0.tar.gz cd ycsb-hbase10-binding-0.10.0 测试: 1 hive中建表 hbase(main):01:0*> n_splits=120 => 120 hbase(main):02:0> create 'usertable','family',{SPLITS => (1...n_splits).map{|i| "user#{1000+i*(9999-1000)/n_splits}"}} 0 row(s) in 18.3610 seconds => Hbase::Table -