Re: max ttl for column

2014-11-25 Thread Rajanish GJ
Mark / Philip - Thanks a lot. This is really helpful. BTW It was my bad, i was mistaken that ttl was in miliseconds rather than seconds.. Regards Rajanish GJ apigee | rajan...@apigee.com On Fri, Nov 21, 2014 at 9:42 AM, Philip Thompson < philip.thomp...@datastax.com> wrote: > With the newest ve

Re: max ttl for column

2014-11-21 Thread Philip Thompson
With the newest versions of Cassandra, cql is not hanging, but returns the same Invalid Query Exception you are seeing through hector. I would assume from the exception that 63072 is in fact that largest TTL you can use. What are you doing that you need to set a TTL of approximately 30 years?

Re: max ttl for column

2014-11-21 Thread Mark Reddy
Hi Rajanish, Cassandra imposes a max TTL of 20 years. public static final int MAX_TTL = 20 * 365 * 24 * 60 * 60; // 20 years in > seconds See: https://github.com/apache/cassandra/blob/8d8fed52242c34b477d0384ba1d1ce3978efbbe8/src/java/org/apache/cassandra/db/ExpiringCell.java#L37 Mark On 21

max ttl for column

2014-11-21 Thread Rajanish GJ
Does hector or cassandra imposes a limit on max ttl value for a column? I am trying to insert record into one of the column family and seeing the following error.. Cassandra version : 1.1.12 Hector : 1.1-4 Any pointers appreciated. me.prettyprint.hector.api.exceptions.HInvalidRequestException: