RE: Determining Snitch at Runtime

2013-07-30 Thread Ben Boule
It looks like I can infer this from the local table in the system schema by looking at the datacenter value. Would this be a bad bad thing to do? Thanks, Ben From: Ben Boule [ben_bo...@rapid7.com] Sent: Tuesday, July 30, 2013 11:41 AM To: user

Determining Snitch at Runtime

2013-07-30 Thread Ben Boule
Hi Everyone, Sorry if the answer to this question is out there, I can't seem to find it by searching. Is there a way to read the endpoint_snitch at runtime, preferably from a CQL query, but fine if it's available through an older API? (Or JMX?) We're automating creating clusters & provisioni

RE: Unit Testing Cassandra

2013-06-19 Thread Ben Boule
Hi Shabab, Cassandra-Unit has been helpful for us for running unit tests without requiring a real cassandra instance to be running. We only use this to test our "DAO" code which interacts with the Cassandra client. It basically starts up an embedded instance of cassandra and fools your clien

token() function in CQL3 (1.2.5)

2013-06-19 Thread Ben Boule
Can anyone explain this to me? I have been looking through the source code but can't seem to find the answer. The documentation mentions using the token() function to change a value into it's token for use in queries. It always mentions it as taking a single parameter: SELECT * FROM posts

State of Cassandra-Shuffle (1.2.x)

2013-06-17 Thread Ben Boule
it's not a total waste, but we would have liked to be able to balance the load on the original cluster in the mean time. Any advice? We are planning to migrate to 2.0 later this summer but probably don't want to build it from the beta source ourself right now. Thank you, Ben Bo