Benchmark Cassandra 1.01 with YCSB

来源:互联网 发布:雕刻机 编程 编辑:程序博客网 时间:2024/05/22 00:09

./ycsb shell cassandra-10



manually create the keyspace and column family on Cassandra:

CREATE KEYSPACE usertable with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = {replication_factor:3};

use usertable;

create column family data with column_type = 'Standard'  and  key_validation_class=UTF8Type and comparator=UTF8Type and default_validation_class=UTF8Type;


 set data[ascii('12312132')][ascii('province')]=ascii('BJ');   


bin/ycsb load cassandra-10 -P workloads/workloada

//the file of workloada  should add "hosts=127.0.0.1,......"

 bin/ycsb run cassandra-10 -P workloads/workloada >tt.dat


// tt.dat is the test report.



mvn install:install-file -DgroupId=Cloudy -DartifactId=Cloudy -Dversion=1.0 -Dpackaging=jar -Dfile=/home/anycom/cloudy/Cloudy-1.0.jar


 connect bach16.ethz.ch/9160;     

 CREATE KEYSPACE Keyspace1 with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = {replication_factor:3};


 use Keyspace1;                    

 create column family Standard1 with column_type = 'Standard'  and  key_validation_class=UTF8Type and comparator=UTF8Type and default_validation_class=UTF8Type;