Re: Working with libcql

2013-07-10 Thread Shubham Mittal
Morton Freelance Cassandra Consultant New Zealand @aaronmorton http://www.thelastpickle.com On 9/07/2013, at 9:46 PM, Shubham Mittal smsmitta...@gmail.com wrote: yeah I tried that and below is the output I get LOG: resolving remote host localhost:9160 LOG: resolved remote host

Working with libcql

2013-07-08 Thread Shubham Mittal
Hi, I found out that there exist a C++ client libcql for cassandra but its github repository just provides the example on how to connect to cassandra. Is there anyone who has written some code using libcql to read and write data to a cassandra DB, kindly share it. Thanks

Use case of libcql

2013-07-05 Thread Shubham Mittal
Hi, Does anyone know about any working use case of libcql (c++ client for cassandra) because there is not much info on its github repohttps://github.com/mstump/libcql regarding how to use it. Thanks

Re: Partitioner type

2013-07-04 Thread Shubham Mittal
Yeah its possible, It depends on which client you're using. e,g. In pycassa(python client for cassandra), I use import pycassa from pycassa.system_manager import * sys = SystemManager('hostname:portnumber') sys.describe_partitioner() On Thu, Jul 4, 2013 at 5:32 PM, Vivek Mishra

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
On Wed, Jul 3, 2013 at 8:38 AM, Jeremiah D Jordan jeremiah.jor...@gmail.com wrote: 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 smsmitta...@gmail.com wrote: I am trying to run below code, but it gives this error

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 smsmitta...@gmail.comwrote: This is the gdb output [Thread debugging using libthread_db enabled] terminate called after throwing an instance of 'org::apache::cassandra

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
() { CassandraFactory cf(host, port); tr1::shared_ptrCassandra c(cf.create()); KeyspaceDefinition ks_def; ks_def.setName(demo); return 0; } On Wed, Jul 3, 2013 at 5:22 PM, Shubham Mittal smsmitta...@gmail.comwrote: no Jordan, the cassandra version I have is Cassandra 1.1.12 On Wed, Jul 3, 2013

Re: Problem with libcassandra

2013-07-03 Thread Shubham Mittal
families because that operations fails if some of your nodes is down, so by using cassandra-cli you force, in a way, the supervision of a human being :D. good luck! On Wed, Jul 3, 2013 at 9:12 AM, Shubham Mittal smsmitta...@gmail.comwrote: Hey, I found out that the problem is caused

Problem with libcassandra

2013-07-02 Thread Shubham Mittal
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/2011/02/27/libcassandra-sec-indexes/) terminate called after throwing an instance of 'org::apache::cassandra::InvalidRequestException' what():