cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damick, Jeffrey" <>
Subject Re: Correct way to set strategy options in cqlsh?
Date Tue, 22 May 2012 20:43:59 GMT
I tried various flavors of single and double quotes in different locations with no luck..

On 5/22/12 11:44 AM, "Yiming Sun" <> wrote:

Sorry, I didn't read carefully enough.  I don't use cqlsh.  Have you tried to add single-quotes
around your data center names?  I found a post that asked how to escape single quotes, and
the answer was not back-slash, but using another set of single quotes per SQL model, so it
may work.

On Tue, May 22, 2012 at 11:26 AM, Damick, Jeffrey <> wrote:
Thanks, but that would be for the cli, not cqlsh

                   ...   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" < <>
> wrote:

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

On Tue, May 22, 2012 at 11:10 AM, Damick, Jeffrey < <>
> 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" ?


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

View raw message