incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: setStrategy_options syntax in thrift
Date Tue, 20 Dec 2011 18:50:51 GMT
It looks like you tried to pass the string "{replication_factor:2}" 

You need to pas a Map<String, String> type , where the the key is the option and the
value is the option value.

Cheers
 
-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 20/12/2011, at 12:02 PM, A J wrote:

> What is the syntax of setStrategy_options in thrift.
> 
> The following fails:
> 
> Util.java:22: setStrategy_options(java.util.Map<java.lang.String,java.lang.String>)
> in org.apache.cassandra.thrift.KsDef cannot be applied to
> (java.lang.String)
>        newKs.setStrategy_options("{replication_factor:2}");


Mime
View raw message