Re: Cassandra API Library.

2012-08-27 Thread Paolo Bernardi
On 08/23/2012 01:40 PM, Thomas Spengler wrote: 4) pelops (Thrift,Java) I've been using Pelops for quite some time with pretty good results; it felt much cleaner than Hector. Paolo -- @bernarpa http://paolobernardi.wordpress.com

Re: Creating counter columns in cassandra

2012-07-29 Thread Paolo Bernardi
On Sun, Jul 29, 2012 at 9:30 AM, Abhijit Chanda abhijit.chan...@gmail.com wrote: There should be at least one = (equals) in the WHERE case on key or secondary index column, this is the Cassandra limitation. Yep, it's still there (see validateFilterClauses from line 531):

Re: store large String as col value

2012-06-20 Thread Paolo Bernardi
Take also into account Thrift's limits. http://wiki.apache.org/cassandra/CassandraLimitations Paolo On Jun 20, 2012 10:11 PM, Dave Brosius dbros...@mebigfatguy.com wrote: Column values are limited at 2G. Why store them as Base64? that just adds overhead. Storing the raw bytes will save you

Re: Source for Cassandra Pig and Hive

2012-05-02 Thread Paolo Bernardi
I think that your best bet is to look directly into the source tarball https://www.apache.org/dyn/closer.cgi?path=/cassandra/1.0.8/apache-cassandra-1.0.8-src.tar.gz or in the git repository http://git-wip-us.apache.org/repos/asf/cassandra.git Paolo On 05/02/12 01:12, rk vishu wrote: Hello

Re: Can column type be changed dynamically?

2012-04-28 Thread Paolo Bernardi
Apparently IntegerType is based on Java's BigInteger. http://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob_plain;f=src/java/org/apache/cassandra/db/marshal/IntegerType.java;hb=HEAD Given the message, I suspect that you got some values between -2^15 and 2^15-1 (the range of a short int)

Re: Cassandra 1.1 - conflict resolution - any changes ?

2012-04-25 Thread Paolo Bernardi
Yes, AFAIK it's still like this (and I don't think that this behavior will change, you can rely on it). Paolo On Apr 25, 2012 9:36 AM, Maciej Miklas mac.mik...@googlemail.com wrote: Hi, I've seen this blog entry: http://www.datastax.com/dev/blog/schema-in-cassandra-1-1 and I am trying to

Re: Cassandra read optimization

2012-04-19 Thread Paolo Bernardi
Look into your Cassandra's logs to see if JNA is really enabled (it really should be, by default), and more importantly if JNA is loaded correctly. You might find some surprising message over there: if this is the case, just install JNA with your distro's package manager and, if still doesn't

Re: super column

2012-04-12 Thread Paolo Bernardi
No. Maybe that a super column can contain composite columns but I'm not sure. Paolo On Apr 12, 2012 12:15 PM, puneet loya puneetl...@gmail.com wrote: Can a super column contain a super column? I mean is nesting of supercolumns possible? Regards, Puneet :)

Re: INserting data in Cassandra

2012-04-11 Thread Paolo Bernardi
On 04/11/12 11:42, Aliou SOW wrote: And I used the tool json2sstable, but that does not work, I always have an error: java.lang.RuntimeException: Can't write Super columns to the Standard Column Family. So I have two questions: 1) What I did wrong, must I define the complete structure of

RE: Initial token - newbie question (version 1.0.8)

2012-04-11 Thread Paolo Bernardi
I think that setting auto_bootstrap = true or false into cassandra.yaml is enough (if it isn't there already just add it, for example, after initial_token) Paolo On Apr 11, 2012 10:34 PM, Jay Parashar jparas...@itscape.com wrote: Thanks a lot Jeremiah. Also would you be able to tell me where

Compression on secondary indexes

2012-03-30 Thread Paolo Bernardi
Greetings, how may I set the compression algorithm on secondary indexes? I saw that from Cassandra 1.1.0 it will be inherited from the CF, but in the previous releases I must set it explicity; I just don't know how to do that. Paolo -- @bernarpa http://paolobernardi.wordpress.com

Re: Counter question

2012-03-29 Thread Paolo Bernardi
On Thu, 2012-03-29 at 11:47 +0200, Tamar Fraenkel wrote: Can this be set on a CF basis. Only this CF needs higher consistency level. The consistency level of read/write operations is specified at each single read/write function call. This means that you have to use the desired consistency level