cassandra-user mailing list archives

I was using a single node, on cassandra 0.7.10
with Network strategy = SimpleStrategy, and replication factor = 1,
everything is fine, I was using a consistency level of ONE, for
reading/writing
I have updated the keyspace to
update keyspace Mymed with replication_factor = 1 and strategy_options =
[{DC1:0}] and placement_strategy =
'org.apache.cassandra.locator.NetworkTopologyStrategy';
with conf/cassandra-topology.properties having just this for the moment:
default=DC1:r1
the keyspace could update, I could use ks; also, but can't read anything
even from Thrift using ConsistencyLevel.ONE; it will complain that this
strategy require Quorum
I tried with ConsistencyLevel.LOCAL_QUORUM; but get an exception like :
org.apache.thrift.TApplicationException: Internal error processing
get_slice
and in cassandra console:
DEBUG 19:45:02,013 Command/ConsistencyLevel is
SliceFromReadCommand(table='Mymed',
key='637972696c2e617562757274696e40676d61696c2e636f6d',
column_parent='QueryPath(columnFamilyName='Authentication',
superColumnName='null', columnName='null')', start='', finish='',
reversed=false, count=100)/LOCAL_QUORUM
ERROR 19:45:02,014 Internal error processing get_slice
java.lang.NullPointerException
at
org.apache.cassandra.locator.NetworkTopologyStrategy.getReplicationFactor(NetworkTopologyStrategy.java:139)
at
org.apache.cassandra.service.DatacenterReadCallback.determineBlockFor(DatacenterReadCallback.java:83)
at org.apache.cassandra.service.ReadCallback.<init>(ReadCallback.java:77)
at
org.apache.cassandra.service.DatacenterReadCallback.<init>(DatacenterReadCallback.java:48)
at
org.apache.cassandra.service.StorageProxy.getReadCallback(StorageProxy.java:461)
at
org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:326)
at org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:291)
So probably I guess Network topology strategy can't work with just one node?
thx for any feedback