Re: Problem with libcassandra

2013-07-03 Thread Alexis Rodríguez
Shubham, You are right, my point is that with non schema-update thrift calls you can tune the consistency level used. bye. On Wed, Jul 3, 2013 at 10:10 AM, Shubham Mittal wrote: > hi Alexis, > > Even if I create keyspaces, column families using cassandra-cli, the > column creation and insertio

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
hi Alexis, Even if I create keyspaces, column families using cassandra-cli, the column creation and insertion work will still need thrift calls. On Wed, Jul 3, 2013 at 6:05 PM, Alexis Rodríguez wrote: > That repo for libcassandra works for cassandra 0.7.x due to changes in > the thrift interfa

Re: Problem with libcassandra

2013-07-03 Thread Alexis Rodríguez
That repo for libcassandra works for cassandra 0.7.x due to changes in the thrift interface we have faced some problems in the past. May be you can take a look to my fork of libcassandra https://github.com/axs -mvd/libcassandra that we are using with cassandra 1.1.11. Besides that, I recommend th

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
Hey, I found out that the problem is caused by this line : c->createKeyspace(ks_def); because the below code works fine. #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace libcas

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
no Jordan, the cassandra version I have is Cassandra 1.1.12 On Wed, Jul 3, 2013 at 5:21 PM, Shubham Mittal wrote: > This is the gdb output > > [Thread debugging using libthread_db enabled] > terminate called after throwing an instance of > 'org::apache::cassandra::InvalidRequestException' > wh

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
This is the gdb output [Thread debugging using libthread_db enabled] terminate called after throwing an instance of 'org::apache::cassandra::InvalidRequestException' what(): Default TException. Program received signal SIGABRT, Aborted. 0x770a0b25 in raise () from /lib/libc.so.6 On

Re: Problem with libcassandra

2013-07-02 Thread Jeremiah D Jordan
If you are using 1.2, I would checkout https://github.com/mstump/libcql -Jeremiah On Jul 2, 2013, at 5:18 AM, Shubham Mittal wrote: > I am trying to run below code, but it gives this error. It compiles without > any errors. Kindly help me. > (source of the code : > http://posulliv.github.io/

Re: Problem with libcassandra

2013-07-02 Thread Aaron Turner
Have you tried running your code in GDB to find which line is causing the error? That would be what I'd do first. Aaron Turner http://synfin.net/ Twitter: @synfinatic https://github.com/synfinatic/tcpreplay - Pcap editing and replay tools for Unix & Windows Those who would give up essenti