2010/1/7 JKnight JKnight <beukni...@gmail.com> > Dear all, > > Because we want to traverser all data, we need to change partitioner to > ordered type. > > I want to change Partitioner from > org.apache.cassandra.dht.RandomPartitioner to > org.apache.cassandra.dht.OrderPreservingPartitioner. > > How can I do that? >
Well, start by prototyping the change in your test environment and checking that with a large data load, the keys you're using are likely to get spread evenly between the nodes (Hint: They probably won't). Then make any changes to get evenly spread keys. Of course changing the keys is an incompatible change as well. I hope you don't have any production data in there. Then blow away your entire data and restart the nodes with OrderPreservingParitioner Mark