Re: Thrift gen problem with cassandra.thrift

2010-09-23 Thread Shashank Tiwari
I finally grabbed Cassandra off the trunk to make things work so I guess it is 0.7. If I start the same server and connect to it, should things work? I am happy using pycassa or telephus but I had Thrift installed for things beyond Cassandra (for example for Hypertable) and I was hoping that instal

Re: Thrift gen problem with cassandra.thrift

2010-09-23 Thread Tyler Hobbs
Is it possible that you are somehow using the 0.7 generated cassandra module, perhaps from some previous installation of a client library? In 0.7, insert takes only 5 arguments. Also, is there any particular reason that you are using raw Thrift and not a high level client like pycassa, telephus,

Re: Thrift gen problem with cassandra.thrift

2010-09-22 Thread Shashank Tiwari
Jeremy and Aaron, Thanks for your help. I had already installed Thrift on my Snow Leopard so I thought running *thrift -gen cassandra.thrift* file would work. However as the wiki suggests it appears only a specific version of Thrift work with a particular Cassandra version. So I checked out the m

Re: Thrift gen problem with cassandra.thrift

2010-09-22 Thread Aaron Morton
I normally get the source download, then run ant gen-thrift-py Is there a reason you want to build it manually?Aaron On 22 Sep, 2010,at 07:35 PM, Shashank Tiwari wrote:I installed thrift successfully on Snow Leaopard. However, when I run thrift -gen java interface/cassandra.thrift with Cassandra 0

Re: Thrift gen problem with cassandra.thrift

2010-09-22 Thread Jeremy Hanna
Did you build thrift with the specific subversion revision that Cassandra uses? http://wiki.apache.org/cassandra/InstallThrift On Sep 22, 2010, at 2:35 AM, Shashank Tiwari wrote: > I installed thrift successfully on Snow Leaopard. However, when I run > thrift -gen java interface/cassandra.thrift

Thrift gen problem with cassandra.thrift

2010-09-22 Thread Shashank Tiwari
I installed thrift successfully on Snow Leaopard. However, when I run *thrift -gen java interface/cassandra.thrift* with Cassandra 0.6.5, I get an error which reads as follows: apache-cassandra-0.6.5/interface/cassandra.thrift:303] error: identifier ONE is unqualified! Line 303 of cassandra.thr