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 <bluethu...@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
>
>

Reply via email to