Re: Cassadra API for Java

2012-12-28 Thread Michael Kjellman
This was asked as recently as one month + 1 day btw: http://grokbase.com/t/cassandra/user/12bve4d8e8/java-high-level-client if you weren't subscribed to the group to see the messages to see a longer discussion. From: Baskar Sikkayan mailto:techba...@gmail.com>> Reply-To: "user@cassandra.apache.o

Re: Fixing the schema for a Column Family

2012-12-28 Thread Michael Kjellman
I've found that if you drop a column family, the data is still there/snapshotted. If you recreate the column family as expected the data will repopulate the cf. From: Charles Lamanna mailto:char...@metricshub.com>> Reply-To: "user@cassandra.apache.org" mailto:u

Re: Cassadra API for Java

2012-12-28 Thread Michael Kjellman
Hector is an abstraction to pure thrift. I prefer https://github.com/Netflix/astyanax If you are just starting and can wait for the official 1.2 release (obviously in production you can use trunk or the rc versions) then take a look at https://github.com/datastax/java-driver Best, mike From:

Fixing the schema for a Column Family

2012-12-28 Thread Charles Lamanna
Hello folks -- I just ran into this nasty Cassandra issue: https://issues.apache.org/jira/browse/CASSANDRA-4805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel As a result, one of my column families had its schema reset. For example, when I created the column family, this wa

Re: Changing rpc_port in cassandra.yaml has no effect

2012-12-28 Thread Bob Futrelle
Thanks for the detailed help. I'll follow up. - Bob Futrelle On Fri, Dec 28, 2012 at 1:51 PM, Andras Szerdahelyi < andras.szerdahe...@ignitionone.com> wrote: > > Its not clear to me how you are starting the daemon. You mention Eclipse > - do you have Cassandra embedded in an Eclipse project

keyspace not copied to new node

2012-12-28 Thread Cory Mintz
I am trying to add a second node to a cluster that is currently a single node, with a single key space on it. * Cluster names are in sync * They both have the same seed node (the first one) * Both of the same snitch (Ec2Snitch) * I am not filling in an initial_token on either When I start the new

Re: Changing rpc_port in cassandra.yaml has no effect

2012-12-28 Thread Andras Szerdahelyi
Its not clear to me how you are starting the daemon. You mention Eclipse - do you have Cassandra embedded in an Eclipse project? cassandra.yaml might not be read correctly. Make sure its on the class path, i have it in src/main/resources and it gets picked up from there just fine ( although i o

Re: CQL3 Compound Primary Keys - Do I have the right idea?

2012-12-28 Thread Pierre-Yves Ritschard
OK, so great news, it is now possible to do in CQL with the following syntax, as per CASSANDRA-4179 CREATE TABLE foo ( host text, service text, metric int, PRIMARY KEY ((host,service))); (note the double parentheses). This will effectively create a CF whose row key is a composite type.

tpstats ReadStage when using secondary index

2012-12-28 Thread cscetbon.ext
Hi, Is it normal that ReadStage completed counter is incremented by 2 when the CQL request uses a secondary index ? thanks -- Cyril SCETBON _ Ce message et ses pieces jointe

cassandra 1.2.0-rc2 on osx

2012-12-28 Thread cscetbon.ext
Hi, FYI, I've added the devel version to the cassandra formula of the homebrew package installer, and updated the release version to 1.1.8. You can now use brew install cassandra to install version 1.1.8 and brew install --devel cassandra to install version 1.2.0-rc2 enjoy ! -- Cyril SCETBON _

Re: Cassandra read throughput with little/no caching.

2012-12-28 Thread Yiming Sun
James, sorry I was out for a few days. Yes, if the row cache doesn't give a good hit rate then it should be disabled. Is there any chance to increase the VM configuration specs? I couldn't pinpoint in exactly which message you mentioned the VMs are 2GB mem and 2 cores, which is a bit meager. Al

Question on TTLs and Tombstones

2012-12-28 Thread Michal Michalski
Hi, I have a question regarding TTLs and Tombstones with a pretty long scenario + solution question. My first, general question is - when Cassandra checks for the TTL (if it expired) and creates the Tombstone if needed? I know it happens during compaction, but is this the only situation? How