YCSB/cassandra2
Connor McCoy a0527af58f [license] Apply results of Apache Rat check
Also fix a few README formatting issues.

        mvn org.apache.rat:apache-rat-plugin:0.11:check -D rat.numUnapprovedLicenses=5000
2015-11-04 10:25:46 -08:00
..
src [license] Apply results of Apache Rat check 2015-11-04 10:25:46 -08:00
README.md [cassandra] Add some READMEs 2015-10-29 10:14:35 -07:00
pom.xml [version] update master to 0.6.0-SNAPSHOT. 2015-11-03 20:10:06 -08: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.
  • cassandra.readconsistencylevel

  • cassandra.writeconsistencylevel

    • Default value is ONE
    • Note that the default setting does not provide durability in the face of node failure. Changing this setting will affect observed performance. See also replication_factor, above.