Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7985B9559 for ; Wed, 14 Dec 2011 21:33:55 +0000 (UTC) Received: (qmail 68286 invoked by uid 500); 14 Dec 2011 21:33:53 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 68255 invoked by uid 500); 14 Dec 2011 21:33:53 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 68246 invoked by uid 99); 14 Dec 2011 21:33:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 21:33:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of etamme@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qy0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 21:33:43 +0000 Received: by qcsf15 with SMTP id f15so961767qcs.31 for ; Wed, 14 Dec 2011 13:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Vnkot347gZz1rMMC7KQ4decND41BdOMIROTadoTb+JY=; b=tTWGCtfiBWr5hk6k03qzUI+RbdAsvwCRj0QH1+bWZc1DvCD2dkZYENa1bxTuGFhGO/ dL+9B+T/HvMZodrtea1rNI+TrJDCRFsZYqbgS4ADQ4NU/ZdMZNhJbAM7wv0MOw60Zw18 scpYv2ky9/AvCUN0mVelGGc8IAmuYlTISg/y0= Received: by 10.224.117.143 with SMTP id r15mr854173qaq.36.1323898402758; Wed, 14 Dec 2011 13:33:22 -0800 (PST) Received: from [192.168.1.42] ([38.104.167.182]) by mx.google.com with ESMTPS id dm3sm8195629qab.12.2011.12.14.13.33.21 (version=SSLv3 cipher=OTHER); Wed, 14 Dec 2011 13:33:21 -0800 (PST) Message-ID: <4EE91623.3050600@gmail.com> Date: Wed, 14 Dec 2011 16:33:23 -0500 From: Eric Tamme User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Lightning/1.0b2 Thunderbird/3.1.15 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Cassandra C client implementation References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 ? > > Regards, > Vlad > > Vlad Paiu wrote: > Vlad, We have written a specific cassandra db module for usrloc with opensips and have open sourced it on github. We use the thrift generated c++ bindings and extern stuff to c. I spoke to bogdan about this a while ago, and gave him the github link, but here it is for your reference https://github.com/junction/db_jnctn_usrloc Hopefully that helps. I idle in #opensips too, just ask about cassandra in there and I'll probably see it. - Eric Tamme