Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 10513 invoked from network); 11 May 2010 18:45:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 18:45:55 -0000 Received: (qmail 9124 invoked by uid 500); 11 May 2010 18:45:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 9101 invoked by uid 500); 11 May 2010 18:45:54 -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 9093 invoked by uid 99); 11 May 2010 18:45:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 18:45:54 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of scott@corp.sonic.net designates 64.142.19.5 as permitted sender) Received: from [64.142.19.5] (HELO b.mail.sonic.net) (64.142.19.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 18:45:48 +0000 Received: from eva.ponzo.net (eva.ponzo.net [69.12.218.212]) (authenticated bits=0) by b.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id o4BIjRVs025918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 11 May 2010 11:45:27 -0700 Message-ID: <4BE9A5C7.9080100@corp.sonic.net> Date: Tue, 11 May 2010 11:45:27 -0700 From: Scott Doty Organization: Sonic.net, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Apache Cassandra and Net::Cassandra::Easy References: <4BD26210.6000006@gmail.com> <4BE98862.2070902@corp.sonic.net> <87tyqeqqn1.fsf@lifelogs.com> In-Reply-To: <87tyqeqqn1.fsf@lifelogs.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 05/11/2010 10:45 AM, Ted Zlatanov wrote: > SD> My prototype app can be seen here: > > SD> http://bito.ponzo.net/Hatchet/ > > > The latest N::C::Easy will not work with Cassandra 0.6.x, the only > target is SVN trunk. I can't discover the API version on the server so > there's no way to anticipate such breakage as you see (I suspect it's > due to API mismatch). The Cassandra developers haven't addressed > https://issues.apache.org/jira/browse/CASSANDRA-972 which can be used to > provide all that information over Thrift as well as in the log files. > > Can you give an example of a failing script, with any details on the > server version and keyspace/CF setup? Without source code I'm only guessing. > > The prototype is in the tgz file, in the http directory listed above. http://bito.ponzo.net/Hatchet/ A kind person on Freenode pointed me to this ticket: https://issues.apache.org/jira/browse/THRIFT-758 I followed it & hand-applied the suggested patch, so the application gets as far as: $VAR1 = bless( { 'code' => 1, 'message' => 'Invalid method name: \'set_keyspace\'' }, 'TApplicationException' ); This is using Net-Cassandra-Easy-0.14-7Jcufu and Cassandra 0.6.1. Maybe I can use an earlier Cassandra & make this work? :) > Finally, if you're looking for speed, N::C::Easy is not a good fit. The > Perl implementation of Thrift is significantly slower (5-20x in my > benchmarks) than the equivalent code in Java. This is outside of > N::C::Easy so there's not much I can do about it (see > https://issues.apache.org/jira/browse/THRIFT-775 which I opened > recently, and which can perhaps help the performance). > The perl prototype was just to get a general feel for the API & implement something q&d that might actually work for the time being. ( Or so I like to tell myself. :P ) -Scott