Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Patch for YCSB Cassandra Client version 1.0.6 #89

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
4 participants
Contributor

jananin commented Aug 4, 2012

We have a patch for YCSB cassandra client version 1.0.6.This allows users to choose the consistency model at runtime.Consistency level can be ONE or QUORUM or ALL (as applicable)and can be set via properties.The default value being ONE.The patch supports all 4 operations - read,write,scan and delete.The corresponding properties to be set will be cassandra.readconsistencylevel, cassandra.writeconsistencylevel, cassandra.scanconsistencylevel and cassandra.deleteconsistencylevel.
For example,to set write consistency to quorum,users can use the following property.

cassandra.writeconsistencylevel=QUORUM

Patch is applicable for current YCSB framework version 1.0.4

It looks like the default values for write consistency and scan consistency got mixed up. The default value for scanConsistencyLevel should be SCAN_CONSISTENCY_LEVEL_PROPERTY_DEFAULT.

Contributor

jananin commented Aug 9, 2012

fixed default values for scan and write consistency level

m1ch1 pushed a commit that referenced this pull request Aug 14, 2012

@m1ch1 m1ch1 closed this Aug 14, 2012

jbohman added a commit to jbohman/YCSB that referenced this pull request Sep 11, 2012

joey added a commit to joey/YCSB that referenced this pull request Feb 7, 2013

Hello,

Can anyone show me an example on how to change the consistency level property from the ycsb client command line?

For example, can I specify it with the "java -cp build/ycsb.jar com.yahoo.ycsb.Client -t ... " command?

Muntasir.

Hi muntasirraihan,
How did you change the consistency level In YCSB for Cassandra. Please can you explain the steps you followed.

I think the latest version of ycsb has a patch where you can change the
read and write consistency levels.

#89

You should try that.

Muntasir.

On Sun, Feb 2, 2014 at 5:09 PM, venkateshhari notifications@github.comwrote:

Hi muntasirraihan,
How did you change the consistency level In YCSB for Cassandra. Please can
you explain the steps you followed.

Reply to this email directly or view it on GitHubhttps://github.com/brianfrankcooper/YCSB/pull/89#issuecomment-33916477
.

Best Regards
Muntasir Raihan Rahman
Email: muntasir.raihan@gmail.com
Department of Computer Science,
University of Illinois Urbana Champaign,
3111 Siebel Center,
201 N. Goodwin Avenue,
Urbana, IL 61801

Thanks, still I am confused. I am using latest YCSB 1.0.4 and Cassandra client 1.0.6.
As, jananin mention that consistency level value from ONE to QUORUM can be changed via property within Cassandra client 1.0.6 Java code. But you mention some command line example, I am asking how do you passed as command line parameter.

jaricftw pushed a commit to jaricftw/YCSB that referenced this pull request Jul 19, 2016

jaricftw pushed a commit to jaricftw/YCSB that referenced this pull request Jul 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment