RE: old data / tombstones are not deleted after ttl

2013-03-05 Thread Matthias Zeilinger
Short question afterwards: I have read in the documentation, that after a major compaction, minor compactions are no longer automatically trigger. Does this mean, that I have to do the nodetool compact regulary? Or is there a way to get back to the automatically minor compactions? Thx, Br, Mat

Replacing dead node when num_tokens is used

2013-03-05 Thread Jan Kesten
Hello, while trying out cassandra I read about the steps necessary to replace a dead node. In my test cluster I used a setup using num_tokens instead of initial_tokens. How do I replace a dead node in this scenario? Thanks, Jan

Re: old data / tombstones are not deleted after ttl

2013-03-05 Thread Marcus Eriksson
you could consider enabling leveled compaction: http://www.datastax.com/dev/blog/leveled-compaction-in-apache-cassandra On Tue, Mar 5, 2013 at 9:46 AM, Matthias Zeilinger < matthias.zeilin...@bwinparty.com> wrote: > Short question afterwards: > > I have read in the documentation, that after a ma

Re: Replication Question

2013-03-05 Thread Sylvain Lebresne
On Mon, Mar 4, 2013 at 9:53 PM, Kanwar Sangha wrote: > Hi – If I configure a RF across 2 Data centres as below and assuming 3 > nodes per Data centre. > > ** ** > > DC1: 2, DC2:2 > > ** ** > > I do a write with consistency level – local_quorum which ensures that > there is no inter DC

Re: old data / tombstones are not deleted after ttl

2013-03-05 Thread Michal Michalski
> I have read in the documentation, that after a major compaction, > minor compactions are no longer automatically trigger. > Does this mean, that I have to do the nodetool compact regulary? Or > is there a way to get back to the automatically minor compactions? I think it's one of the most confu

Trying to identify the problem with CQL ...

2013-03-05 Thread Gabriel Ciuloaica
Hello, I'm trying to find out what the problem is and where it is located. I have a 3 nodes Cassandra cluster (1.2.1), RF=3. I have a keyspace and a cf as defined (using PropertyFileSnitch): CREATE KEYSPACE backend WITH replication = { 'class': 'NetworkTopologyStrategy', 'DC-TORONTO': '3' };

Re: Cassandra instead of memcached

2013-03-05 Thread Ben Bromhead
Check out http://techblog.netflix.com/2012/07/benchmarking-high-performance-io-with.html Netflix used Cassandra with SSDs and were able to drop their memcache layer. Mind you they were not using it purely as an in memory KV store. Ben Instaclustr | www.instaclustr.com | @instaclustr On 05/03

Re: Trying to identify the problem with CQL ...

2013-03-05 Thread Sylvain Lebresne
Without looking into details too closely, I'd say you're probably hitting https://issues.apache.org/jira/browse/CASSANDRA-5292 (since you use NTS+propertyFileSnitch+a DC name in caps). Long story short, the CREATE KEYSPACE interpret your DC-TORONTO as dc-toronto, which then probably don't match wh

Re: Ghost nodes

2013-03-05 Thread Alain RODRIGUEZ
Any clue on this ? 2013/2/25 Alain RODRIGUEZ > Hi, > > I am having issues after decommissioning 3 nodes one by one of my 1.1.6 C* > cluster (RF=3): > > On the "c.164" node, which was added a week after removing the 3 nodes, > with gossipinfo I have: > > /a.135 > RPC_ADDRESS:0.0.0.0 > STATU

Re: Trying to identify the problem with CQL ...

2013-03-05 Thread Gabriel Ciuloaica
Hi Sylvain, thanks for fast answer. I have updated keyspace definition and cassandra-topologies.properties to all 3 nodes and restarted each node. Both problems are still reproducible. I'm not able to read my writes and also the selects shows same data as in my previous email. for write and

Re: CQL query issue

2013-03-05 Thread Vivek Mishra
Thank you i am able to solve this one. If i am trying as : SELECT * FROM "CompositeUser" WHERE "userId"='mevivs' LIMIT 100 ALLOW FILTERING it works. Somehow got confused by http://www.datastax.com/docs/1.2/cql_cli/cql/SELECT, which states as : SELECT select_expression FROM *keyspace_name.*tab

Re: Ghost nodes

2013-03-05 Thread Jason Wee
try assasinate from the jmx? http://nartax.com/2012/09/assassinate-cassandra-node/ or try cassandra -Dcassandra.load_ring_state=false http://www.datastax.com/docs/1.0/references/cassandra#options On Tue, Mar 5, 2013 at 6:54 PM, Alain RODRIGUEZ wrote: > Any clue on this ? > > > 2013/2/25 Alain

Re: Ghost nodes

2013-03-05 Thread Alain RODRIGUEZ
"try assasinate from the jmx? http://nartax.com/2012/09/assassinate-cassandra-node/"; I finally used this solution... It always solves the problems of ghost nodes :D. Last time I had unreachable nodes while describing cluster in CLI (as described in the link) and I used the jmx unsafeAssassinateEn

Re: CQL query issue

2013-03-05 Thread Vivek Mishra
Somebody in group, please confirm if it is an issue or that needs rectified for select syntax. -Vivek On Tue, Mar 5, 2013 at 5:31 PM, Vivek Mishra wrote: > Thank you i am able to solve this one. > If i am trying as : > > SELECT * FROM "CompositeUser" WHERE "userId"='mevivs' LIMIT 100 ALLOW > F

Re: CQL query issue

2013-03-05 Thread Sylvain Lebresne
This is not an issue of Cassandra. In particular http://cassandra.apache.org/doc/cql3/CQL.html#selectStmt is up to date. It is an issue of the datastax documentation however. I'll see with them that this gets resolved. On Tue, Mar 5, 2013 at 3:26 PM, Vivek Mishra wrote: > Somebody in group, ple

Re: what size file for LCS is best for 300-500G per node?

2013-03-05 Thread Hiller, Dean
Thanks! Dean On 3/4/13 7:12 PM, "Wei Zhu" wrote: >We have 200G and ended going with 10M. The compaction after repair takes >a day to finish. Try to run a repair and see how it goes. > >-Wei > >- Original Message - >From: "Dean Hiller" >To: user@cassandra.apache.org >Sent: Monday, March

Re: Trying to identify the problem with CQL ...

2013-03-05 Thread Gabriel Ciuloaica
So, I have added more logging to the test app (comments inline). For some reason I'm loosing updates. In a for loop I'm executing upload, read writetime, download blob. Executed 10 times... See iteration number 2 and 3 1. initialize session 0[main] INFO com.datastax.driver.core.Clus

*-ib-* files instead of *-he-* files?

2013-03-05 Thread Hiller, Dean
Our upgradesstables completed but I still see *he-593-Data.db files and such which from testing seem to be the 1.1.x table names. I see the new *ib-695-Data.db files. Can I safely delete the *-he-* files now? I was expecting cassandra to delete them when I was done but maybe they are there fr

Re: Unable to instantiate cache provider org.apache.cassandra.cache.SerializingCacheProvider

2013-03-05 Thread aaron morton
Details are here https://issues.apache.org/jira/browse/CASSANDRA-3271 Cheers - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 4/03/2013, at 8:04 AM, Jason Wee wrote: > version 1.0.8 > > Just curious, what is the mechanism f

Re: backing up and restoring from only 1 replica?

2013-03-05 Thread aaron morton
Hinted Handoff works well. But it's an optimisation that has certain safety valves, configuration and throttling that means it is still not considered the way to ensure on disk consistency. In general, if a node restarts or drops mutations HH should get the message there eventually. In specifi

Re: anyone see this user-cassandra thread get answered...

2013-03-05 Thread aaron morton
Was probably this https://issues.apache.org/jira/browse/CASSANDRA-4597 Cheers - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 4/03/2013, at 2:05 PM, "Hiller, Dean" wrote: > I was reading > http://mail-archives.apache.org/mo

Re: anyone see this user-cassandra thread get answered...

2013-03-05 Thread Hiller, Dean
That ticket says it was fixed in 1.1.5 and we are on 1.2.2. We upgraded from 1.1.4 to 1.2.2, ran upgrade tables and watched filenames change from *-he-*.db to *-id-*.db, then changed compaction strategies and still had this issue. Is it the fact we came from 1.1.4? Ours was a very simple 4 no

Re: LCS and counters

2013-03-05 Thread Alain RODRIGUEZ
Well no one says my assertion is false, so it is probably true. Going further, what would be the steps to migrate from STC to LCS ? Is there any precautions to take doing it using C*1.1.6 (like removing commit logs since drain is broken) ? Any insight or link on this procedure would be appreciate

Re: LCS and counters

2013-03-05 Thread Hiller, Dean
+1. We are trying to figure that all out too. I don't know if it helps but we finally upgraded to 1.2.2 which is supposed to have better LCS support from what I understand. We did lots of QA testing and jumped from 1.1.4. Rolling restart did not work at all in QA so we went with take the who

any way to reset timestamp in cassandra to work around cassandra bug?

2013-03-05 Thread Hiller, Dean
I read this Several schema bugs have been fixed since 1.1.1. Let us know if you can reproduce in 1.1.4. You may need to recreate the schema because 1.1.1 used an incorrectly-high timestamp on the original creation. Is there any way to reset that timestamp on all my CF's as we upgraded to 1.2.2

Re: Trying to identify the problem with CQL ...

2013-03-05 Thread Sylvain Lebresne
You do seem to be experiencing a problem indeed, but hard to say what it is from just this (could be anything from a configuration problem, a cassandra bug or a bug in the java driver). But since you seem to be able to reproduce easily, if you can provide a script that reproduce that issue, I'd gla

Re: Cassandra instead of memcached

2013-03-05 Thread Drew Kutcharian
Thanks Ben, that article was actually the reason I started thinking about removing memcached. I wanted to see what would be the optimum config to use C* as an in-memory store. -- Drew On Mar 5, 2013, at 2:39 AM, Ben Bromhead wrote: > Check out > http://techblog.netflix.com/2012/07/benchmar

Re: Poor read latency

2013-03-05 Thread Wei Zhu
According to this: https://issues.apache.org/jira/browse/CASSANDRA-5029 Bloom filter is still on by default for LCS in 1.2.X Thanks. -Wei From: "Hiller, Dean" To: "user@cassandra.apache.org" Sent: Monday, March 4, 2013 10:42 AM Subject: Re: Poor read laten

Re: Poor read latency

2013-03-05 Thread Hiller, Dean
Great to know!……0.1 though is still a heck of a lot of savings compared to 0.01(size-tiered) when using the bloomfilter calculator. Thanks for the info, Dean From: Wei Zhu mailto:wz1...@yahoo.com>> Reply-To: "user@cassandra.apache.org" mailto:user@cassandra

odd timestamps

2013-03-05 Thread William Oberman
I happened to notice some bizarre timestamps coming out of the cassandra-cli. Example: [default@XXX] get CF[‘e2b753aa33b13e74e5e803d787b06000']; => (column=c35ef420-c37a-11e0-ac88-09b2f4397c6a, value=XXX, timestamp=2013042719) => (column=c3845ea0-c37a-11e0-8f6f-09b2f4397c6a, value=XXX, timestamp=2

Re: odd timestamps

2013-03-05 Thread Hiller, Dean
Yes, clients can write timestamps in those versions….I am not sure about the newer versions as I seem to remember reading something on that. Dean From: William Oberman mailto:ober...@civicscience.com>> Reply-To: "user@cassandra.apache.org" mailto:user@cassandr

Re: odd timestamps

2013-03-05 Thread Edward Capriolo
There is no exact spec on timestamp the convention is micros from epoch but you are free to use anything you want. To update a column you only need a timestamp higher then the original. On Tue, Mar 5, 2013 at 1:55 PM, Hiller, Dean wrote: > Yes, clients can write timestamps in those versions….I a

Re: is upgradesstables required for 1.1.4 to 1.2.2? (I don't think it is)

2013-03-05 Thread Hiller, Dean
To answer my own question here, we tested this out in QA and then ran in production with no issues Step 1. Upgrade to 1.2.2 Step 2. Start up all nodes It works great. There was no need to run upgradesstables. That said, we are doing a rolling upgradesstables on every node in production right no

Can I create a counter column family with many rows in 1.1.10?

2013-03-05 Thread Mateus Ferreira e Freitas
And what syntax would be, if it's possible?Thanks.

Re: Can I create a counter column family with many rows in 1.1.10?

2013-03-05 Thread Abhijit Chanda
Yes you can , you just have to use CQL3 and 1.1.10 onward cassandra supports CQL3. Just you have to aware of the fact that a column family that contains a counter column can only contain counters. In other other words either all the columns of the column family excluding KEY have the counter type

Re: Storage question

2013-03-05 Thread aaron morton
Check out the aforementioned astyanax and this http://www.datastax.com/dev/blog/cassandra-file-system-design Cheers - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 4/03/2013, at 1:38 PM, "Hiller, Dean" wrote: > Thanks for

Re: Consistent problem when solve Digest mismatch

2013-03-05 Thread aaron morton
> Otherwise, it means the version conflict solving strong depends on global > sequence id (timestamp) which need provide by client ? Yes. If you have an area of your data model that has a high degree of concurrency C* may not be the right match. In 1.1 we have atomic updates so clients see eit

Re: hinted handoff disabling trade-offs

2013-03-05 Thread aaron morton
The advantage of HH is that it reduces the probability of a DigestMismatch when using a CL > ONE. A DigestMismatch means the read has to run a second time before returning to the client. >> > - No risk of hinted-handoffs building up >> > - No risk of hinted-handoffs flooding a node that just ca

Re: Replacing dead node when num_tokens is used

2013-03-05 Thread aaron morton
AFAIK you just fire up the new one and let nature take it's course :) http://www.datastax.com/docs/1.2/operations/add_replace_nodes#replace-node i.e. you do not need to use -Dcassandra.replace_token. Hope that helps. - Aaron Morton Freelance Cassandra Developer New Zealand @a

Re: old data / tombstones are not deleted after ttl

2013-03-05 Thread aaron morton
If you have a data model with long lived and frequently updated rows, you can get around the "all fragments" problem by running a user defined compaction. Look for the CompactionManagerMbean on the JMX API https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/compactio

Re: what size file for LCS is best for 300-500G per node?

2013-03-05 Thread aaron morton
Don't forget you can test things http://www.datastax.com/dev/blog/whats-new-in-cassandra-1-1-live-traffic-sampling Cheers - Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 5/03/2013, at 7:37 AM, "Hiller, Dean" wrote: > Thank

Re: Replacing dead node when num_tokens is used

2013-03-05 Thread Jan Kesten
Hello Aaron, thanks for your reply. Found it just an hour ago on my own, yesterday I accidentally looked at the 1.0 docs. Right now my replacement node is streaming from the others - than more testing can follow. Thanks again, Jan

Re: *-ib-* files instead of *-he-* files?

2013-03-05 Thread aaron morton
> he-593-Data.db Search the logs to see if there are any messages for the sstable. > Can I safely delete the *-he-* files now? Maybe, maybe not. Personally I would not. Others can say yes. Restart and see if it get's opened in the logs. if it's still there you can either run another upgrade t

Re: anyone see this user-cassandra thread get answered...

2013-03-05 Thread aaron morton
bah, think I got confused by looking at the version in the email you linked to. if the update CF call is not working, and this is QA, run it with DEBUG logging and file a bug here https://issues.apache.org/jira/browse/CASSANDRA Thanks - Aaron Morton Freelance Cassandra Develop

Re: any way to reset timestamp in cassandra to work around cassandra bug?

2013-03-05 Thread aaron morton
Short answer is no. Medium answer is yes but you want like it. Medium to Long answer is to remove data with a high timestamp you need to delete it with a higher time stamp, and make sure it is purged in compaction by reducing gc_grace. But, if this is the schema it's probably best to take a

Re: anyone see this user-cassandra thread get answered...

2013-03-05 Thread deepansh jain
how to unsubscribe from mailing list On Wed, Mar 6, 2013 at 1:06 PM, aaron morton wrote: > bah, think I got confused by looking at the version in the email you > linked to. > > if the update CF call is not working, and this is QA, run it with DEBUG > logging and file a bug here > https://issues

Re: Cassandra instead of memcached

2013-03-05 Thread aaron morton
consider disabling durable_writes in the KS config to remove writing to the commit log. That will speed things up for you. Note that you risk losing data is cassandra crashes or is not shut down with nodetool drain. Even if you set the gc_grace to 0, deletes will still need to be committed to

Re: Can I create a counter column family with many rows in 1.1.10?

2013-03-05 Thread aaron morton
Note that CQL 3 in 1.1 is compatible with CQL 3 in 1.2. Also you do not have to use CQL 3, you can still use the cassandra-cli to create CF's. The syntax you use to populate it depends on the client you are using. Cheers - Aaron Morton Freelance Cassandra Developer New Zeala

Re: Can I create a counter column family with many rows in 1.1.10?

2013-03-05 Thread Abhijit Chanda
Thanks @aaron for the rectification On Wed, Mar 6, 2013 at 1:17 PM, aaron morton wrote: > Note that CQL 3 in 1.1 is compatible with CQL 3 in 1.2. Also you do not > have to use CQL 3, you can still use the cassandra-cli to create CF's. > > The syntax you use to populate it depends on the client