You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Tim Dunphy <bl...@gmail.com> on 2014/06/19 04:54:10 UTC
error creating keyspace in cqlsh
hey all,
I know that something pretty basic must be wrong here. But what is the
mistake I'm making in creating this keyspace?
cqlsh> create keyspace animals with replication = { 'class':
'NetworkTopologyStrategy', 'replication_factor' : 3};
Bad Request: Error constructing replication strategy class
Thanks
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Re: error creating keyspace in cqlsh
Posted by Tim Dunphy <bl...@gmail.com>.
Hey that helped! Just to quell your curiosity here's my
snitch: endpoint_snitch: SimpleSnitch
thanks!
On Wed, Jun 18, 2014 at 11:03 PM, Marcelo Elias Del Valle <
marcelo@s1mbi0se.com.br> wrote:
>
> Is "replication_factor" your DC name?
>
> Here is what I would using:
>
>
> CREATE KEYSPACE IF NOT EXISTS animals
>
> WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy',
>
> 'DC1' : 3 };
>
> But in my case, I am using GossipPropertyFileSnitch and DC1 is configured there, so Cassandra knows which nodes are in DC1 (data center 1). Which snitch are you using?
> http://www.datastax.com/documentation/cassandra/2.0/cassandra/architecture/architectureSnitchesAbout_c.html
>
>
> Best regards,
> Marcelo.
>
>
>
> 2014-06-18 23:54 GMT-03:00 Tim Dunphy <bl...@gmail.com>:
>
> hey all,
>>
>> I know that something pretty basic must be wrong here. But what is the
>> mistake I'm making in creating this keyspace?
>>
>> cqlsh> create keyspace animals with replication = { 'class':
>> 'NetworkTopologyStrategy', 'replication_factor' : 3};
>> Bad Request: Error constructing replication strategy class
>>
>> Thanks
>> Tim
>>
>> --
>> GPG me!!
>>
>> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>>
>>
>
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Re: error creating keyspace in cqlsh
Posted by Marcelo Elias Del Valle <ma...@s1mbi0se.com.br>.
Is "replication_factor" your DC name?
Here is what I would using:
CREATE KEYSPACE IF NOT EXISTS animals
WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy',
'DC1' : 3 };
But in my case, I am using GossipPropertyFileSnitch and DC1 is
configured there, so Cassandra knows which nodes are in DC1 (data
center 1). Which snitch are you using?
http://www.datastax.com/documentation/cassandra/2.0/cassandra/architecture/architectureSnitchesAbout_c.html
Best regards,
Marcelo.
2014-06-18 23:54 GMT-03:00 Tim Dunphy <bl...@gmail.com>:
> hey all,
>
> I know that something pretty basic must be wrong here. But what is the
> mistake I'm making in creating this keyspace?
>
> cqlsh> create keyspace animals with replication = { 'class':
> 'NetworkTopologyStrategy', 'replication_factor' : 3};
> Bad Request: Error constructing replication strategy class
>
> Thanks
> Tim
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>
>