cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damick, Jeffrey" <Jeffrey.Dam...@neustar.biz>
Subject Re: Correct way to set strategy options in cqlsh?
Date Tue, 22 May 2012 15:26:51 GMT
Thanks, but that would be for the cli, not cqlsh

CREATE KEYSPACE something
                   ...   WITH strategy_class = 'NetworkTopologyStrategy' AND strategy_options={us-east:1};
Invalid syntax at line 2, char 72
    WITH strategy_class = 'NetworkTopologyStrategy' AND strategy_options={us-east:1};



On 5/22/12 11:18 AM, "Yiming Sun" <yiming.sun@gmail.com> wrote:

AND strategy_options={us-east:1, us-west:1};



On Tue, May 22, 2012 at 11:10 AM, Damick, Jeffrey <Jeffrey.Damick@neustar.biz> wrote:
What's the correct way to set the strategy options for the networktopologystrategy with cqlsh?

I've tried several variations, but what's expected way to escape the hyphen in "us-east" ?

Thanks,
-jeff

CREATE KEYSPACE something
   ...   WITH strategy_class = 'NetworkTopologyStrategy'
   ...   AND strategy_options:us-east=1
   ...   AND strategy_options:us-west=1;
Bad Request: line 3:25 mismatched input '-' expecting '='






Mime
View raw message