YCSB/cassandra
Sean Busbey af424b083d [version] update master branch to 0.14 2017-09-21 21:00:41 -05:00
..
src [core] Fixing squid:S1319 - Declarations should use Java collection interfaces such as "List" rather than specific implementation classes such as "LinkedList". 2017-08-05 15:26:42 -07:00
README.md [cassandra] add sigar-dist for cassandra 2.2+ test, and tracing function for recording logs 2016-09-28 09:32:10 +08:00
pom.xml [version] update master branch to 0.14 2017-09-21 21:00:41 -05:00

README.md

Apache Cassandra 2.x CQL binding

Binding for Apache Cassandra, using the CQL API via the DataStax driver.

To run against the (deprecated) Cassandra Thrift API, use the cassandra-10 binding.

Creating a table for use with YCSB

For keyspace ycsb, table usertable:

cqlsh> create keyspace ycsb
    WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor': 3 };
cqlsh> USE ycsb;
cqlsh> create table usertable (
    y_id varchar primary key,
    field0 varchar,
    field1 varchar,
    field2 varchar,
    field3 varchar,
    field4 varchar,
    field5 varchar,
    field6 varchar,
    field7 varchar,
    field8 varchar,
    field9 varchar);

Note that replication_factor and consistency levels (below) will affect performance.

Cassandra Configuration Parameters

  • hosts (required)
    • Cassandra nodes to connect to.
    • No default.
  • port
    • CQL port for communicating with Cassandra cluster.
    • Default is 9042.