You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by A J <s5...@gmail.com> on 2011/07/05 17:09:00 UTC
cql error
cqlsh> CREATE KEYSPACE twissandra with
... strategy_class =
... 'org.apache.cassandra.locator.NetworkTopologyStrategy'
... and strategy_options=[{DC1:1, DC2:1}];
Bad Request: line 4:37 no viable alternative at character ']'
What is wrong with the above syntax ?
Thanks.
Re: cql error
Posted by A J <s5...@gmail.com>.
Thanks. That worked.
On Tue, Jul 5, 2011 at 11:35 AM, Jonathan Ellis <jb...@gmail.com> wrote:
> replace the s_o line with
>
> and strategy_options:DC1=1 and strategy_options:DC2=2
>
> On Tue, Jul 5, 2011 at 10:09 AM, A J <s5...@gmail.com> wrote:
>> cqlsh> CREATE KEYSPACE twissandra with
>> ... strategy_class =
>> ... 'org.apache.cassandra.locator.NetworkTopologyStrategy'
>> ... and strategy_options=[{DC1:1, DC2:1}];
>> Bad Request: line 4:37 no viable alternative at character ']'
>>
>>
>> What is wrong with the above syntax ?
>>
>> Thanks.
>>
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>
Re: cql error
Posted by Jonathan Ellis <jb...@gmail.com>.
replace the s_o line with
and strategy_options:DC1=1 and strategy_options:DC2=2
On Tue, Jul 5, 2011 at 10:09 AM, A J <s5...@gmail.com> wrote:
> cqlsh> CREATE KEYSPACE twissandra with
> ... strategy_class =
> ... 'org.apache.cassandra.locator.NetworkTopologyStrategy'
> ... and strategy_options=[{DC1:1, DC2:1}];
> Bad Request: line 4:37 no viable alternative at character ']'
>
>
> What is wrong with the above syntax ?
>
> Thanks.
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com