Does NetworkTopologyStrategy in Cassandra 2.0 work?

2014-04-22 Thread horschi
Hi,

is it possible that NetworkTopologyStrategy does not work with Cassandra
2.0 any more?

I just updated my Dev Cluster to 2.0.7 and got UnavailableExceptions for
CQLThrift queries on my already existing column families, even though all
(two) nodes were up. Changing to SimpleStrategy fixed the issue.

Also I cannot switch switch back to NetworkTopologyStrategy:

[default@unknown] update keyspace MYKS with placement_strategy =
'NetworkTopologyStrategy';
Error constructing replication strategy class

[default@unknown] update keyspace MYKS with placement_strategy =
'org.apache.cassandra.locator.NetworkTopologyStrategy';
Error constructing replication strategy class


This does not seem to be something I encountered with 1.2 before. Can
anyone tell me which one is broken here, Cassandra or myself? :-)

cheers,
Christian


Re: Does NetworkTopologyStrategy in Cassandra 2.0 work?

2014-04-22 Thread horschi
Ok, it seems 2.0 now is simply stricter about datacenter names. I simply
had to change the datacenter name to match the name in nodetool ring:

update keyspace MYKS with placement_strategy = 'NetworkTopologyStrategy'
and strategy_options = {datacenter1 : 2};

So the schema was wrong, but 1.2 did not care about it.

cheers,
Christian


On Tue, Apr 22, 2014 at 1:51 PM, horschi hors...@gmail.com wrote:

 Hi,

 is it possible that NetworkTopologyStrategy does not work with Cassandra
 2.0 any more?

 I just updated my Dev Cluster to 2.0.7 and got UnavailableExceptions for
 CQLThrift queries on my already existing column families, even though all
 (two) nodes were up. Changing to SimpleStrategy fixed the issue.

 Also I cannot switch switch back to NetworkTopologyStrategy:

 [default@unknown] update keyspace MYKS with placement_strategy =
 'NetworkTopologyStrategy';
 Error constructing replication strategy class

 [default@unknown] update keyspace MYKS with placement_strategy =
 'org.apache.cassandra.locator.NetworkTopologyStrategy';
 Error constructing replication strategy class


 This does not seem to be something I encountered with 1.2 before. Can
 anyone tell me which one is broken here, Cassandra or myself? :-)

 cheers,
 Christian