Re: Cassandra C client implementation

2011-12-16 Thread Vlad Paiu
Hi, I've also decided to give the C++ Thrift a try, but I can't seem to compile the simple examples from http://wiki.apache.org/cassandra/ThriftExamples . I get lots of errors like : /usr/local/include/thrift/transport/TTransport.h:34:1: error: ‘uint32_t’ does not name a type /usr/loc

Re: Cassandra C client implementation

2011-12-16 Thread Vlad Paiu
Hello, Sorry, wrong link in the previous email. Proper link is http://svn.apache.org/viewvc/thrift/trunk/lib/c_glib/test/ Regards, Vlad Paiu OpenSIPS Developer On 12/15/2011 08:35 PM, Vlad Paiu wrote: Hello, While digging more for this I've found these : http://svn.apache.org/viewvc/th

Re: Cassandra C client implementation

2011-12-15 Thread Vlad Paiu
Hello, While digging more for this I've found these : http://svn.apache.org/viewvc/thrift/lib/c_glib/test/ Which shows how to create the TSocket and TTransport structures, very similar to the way it's done in C++. Now I'm stuck on how to create the actual connection to the Cassandra server. I

Re: Cassandra C client implementation

2011-12-15 Thread Vlad Paiu
Hello, Congratulations on your work on libcassandra & libcassie. I agree with you that too many abstractions are not a good thing, that's why I think thrift & glib are a much better way to go than thrift & cpp & libcassandra & libcassie. I as well am looking for a very basic Thrift & glibc ex

Re: Cassandra C client implementation

2011-12-14 Thread Mina Naguib
Hi Vlad I'm the author of libcassie. For what it's worth, it's in production where I work, consuming a heavily-used cassandra 0.7.9 cluster. We do have plans to upgrade the cluster to 1.x, to benefit from all the improvements, CQL, etc... but that includes revising all our clients (across se

Re: Cassandra C client implementation

2011-12-14 Thread Vlad Paiu
Hello Eric, We have that, thanks alot for the contribution. The idea is to not play around with including C++ code in a C app, if there's an alternative ( the thrift g_libc ). Unfortunately, since thrift does not generate a skeleton for the glibc code, I don't know how to find out what the API

Re: Cassandra C client implementation

2011-12-14 Thread Eric Tamme
On 12/14/2011 04:18 PM, Vlad Paiu wrote: Hi, Just tried libcassie and seems it's not compatible with latest cassandra, as even simple inserts and fetches fail with InvalidRequestException... So can anybody please provide a very simple example in C for connecting& fetching columns with thrift

Re: Cassandra C client implementation

2011-12-14 Thread Vlad Paiu
Hi, Just tried libcassie and seems it's not compatible with latest cassandra, as even simple inserts and fetches fail with InvalidRequestException... So can anybody please provide a very simple example in C for connecting & fetching columns with thrift ? Regards, Vlad Vlad Paiu wrote: >Hell

Re: Cassandra C client implementation

2011-12-14 Thread Vlad Paiu
Hello, Thanks very much for your suggestions. Libcassie seems nice but doesn't seem like it's actively maintained and i'm not sure if it's compatible with latest Cassandra versions. Will give it a try though. I was looking through the generated thrift .c files and I can't seem to find what fun

Re: Cassandra C client implementation

2011-12-14 Thread Jeremiah Jordan
If you are OK linking to a C++ based library you can look at: https://github.com/minaguib/libcassandra/tree/kickstart-libcassie-0.7/libcassie It is wrapper code around libcassandra which exports a C++ interface. If you look at the function names etc in the other languages, just use the similar fu

RE: Cassandra C client implementation

2011-12-14 Thread Don Smith
it. Don From: Vlad Paiu [vladp...@opensips.org] Sent: Wednesday, December 14, 2011 8:33 AM To: user@cassandra.apache.org Subject: Re: Cassandra C client implementation Hello, Thanks for your answer. Unfortunately libcassandra is C++ , I'm lookin

Re: Cassandra C client implementation

2011-12-14 Thread Vlad Paiu
t;Sent via BlackBerry® from China Mobile > >-Original Message- >From: i...@iyyang.com >Date: Wed, 14 Dec 2011 15:52:56 >To: >Reply-To: i...@iyyang.com >Subject: Re: Cassandra C client implementation > >Try libcassandra, but it doesn't support connectio

Re: Cassandra C client implementation

2011-12-14 Thread i
om Subject: Re: Cassandra C client implementation Try libcassandra, but it doesn't support connection pooling --Original Message-- From: Vlad Paiu To: user@cassandra.apache.org ReplyTo: user@cassandra.apache.org Subject: Cassandra C client implementation Sent: Dec 14, 2011 11:11 P

Re: Cassandra C client implementation

2011-12-14 Thread i
Try libcassandra, but it doesn't support connection pooling --Original Message-- From: Vlad Paiu To: user@cassandra.apache.org ReplyTo: user@cassandra.apache.org Subject: Cassandra C client implementation Sent: Dec 14, 2011 11:11 PM Hello, I am trying to integrate some Cassandra re

Cassandra C client implementation

2011-12-14 Thread Vlad Paiu
Hello, I am trying to integrate some Cassandra related ops ( insert, get, etc ) into an application written entirelly in C, so C++ is not an option. Is there any C client library for cassandra ? I have also tried to generate thrift glibc code for Cassandra, but on wiki.apache.org/cassandra/Th