Yup, work perfectly now. Thanks, V.
On 10. Aug (Wednesday) v 20:45:36 -0500 2011, Brandon Williams wrote: > You probably have other nodes that are NOT using the snitch yet, so > they haven't populated DC/RACK info yet. The exceptions will stop > when all snitches have been changed. > > On Wed, Aug 10, 2011 at 7:55 PM, Viliam Holub <viliam.ho...@ucd.ie> wrote: > > > > Hi, > > > > I tried to switch to Ec2Snith. Although it correctly found the region: > > > > INFO 23:18:00,643 EC2Snitch using region: eu-west, zone: 1a. > > > > it started to report NullPointerException every second: > > > > ERROR 00:23:40,268 Internal error processing get_slice > > java.lang.NullPointerException > > at > > org.apache.cassandra.locator.Ec2Snitch.getDatacenter(Ec2Snitch.java:93) > > at > > org.apache.cassandra.locator.DynamicEndpointSnitch.getDatacenter(DynamicEndpointSnitch.java:122) > > at > > org.apache.cassandra.locator.OldNetworkTopologyStrategy.calculateNaturalEndpoints(OldNetworkTopologyStrategy.java:64) > > at > > org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalEndpoints(AbstractReplicationStrategy.java:99) > > at > > org.apache.cassandra.service.StorageService.getLiveNaturalEndpoints(StorageService.java:1708) > > at > > org.apache.cassandra.service.StorageService.getLiveNaturalEndpoints(StorageService.java:1702) > > at > > org.apache.cassandra.service.StorageProxy.fetchRows(StorageProxy.java:511) > > at > > org.apache.cassandra.service.StorageProxy.read(StorageProxy.java:480) > > at > > org.apache.cassandra.thrift.CassandraServer.readColumnFamily(CassandraServer.java:126) > > at > > org.apache.cassandra.thrift.CassandraServer.getSlice(CassandraServer.java:280) > > at > > org.apache.cassandra.thrift.CassandraServer.multigetSliceInternal(CassandraServer.java:362) > > at > > org.apache.cassandra.thrift.CassandraServer.get_slice(CassandraServer.java:323) > > at > > org.apache.cassandra.thrift.Cassandra$Processor$get_slice.process(Cassandra.java:3033) > > at > > org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2889) > > at > > org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:187) > > at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > > at java.lang.Thread.run(Thread.java:636) > > > > Am I doing something wrong? > > > > Thanks, > > Viliam > > > > -- Viliam Holub School of Computer Science and Informatics University College Dublin, Ireland