Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 60810 invoked from network); 30 Aug 2010 13:15:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Aug 2010 13:15:50 -0000 Received: (qmail 33157 invoked by uid 500); 30 Aug 2010 13:15:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 32994 invoked by uid 500); 30 Aug 2010 13:15:45 -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 32986 invoked by uid 99); 30 Aug 2010 13:15:44 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Aug 2010 13:15:44 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gdusbabek@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Aug 2010 13:15:22 +0000 Received: by wyi11 with SMTP id 11so7002605wyi.31 for ; Mon, 30 Aug 2010 06:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:content-type; bh=My2fklMaPaMHAkKCIBu0nYYTzM0cXo0TdRldfrRaQPY=; b=ExF2ZkKKXYbkpGTjiJnZiiE2viibzr4GA0GItKDe7KlxTANlpQdp0R0cLLk5eybbC9 +oPlvr9GaRIHq7z8oRhnbLXjYRagXGacXtzQQ3T/q2yqMMDYDjOKLl/zu80ZmEw1q/3S Tb7LtZos0efZoyuGxGSlN3ta/X0hrpH0et7LQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=gFiDSI0ZSSPOTpNfLp2H9A0FectrSoP8Z5ZW0EGSObxlOgQd6S7CxVUBvHU8niR6k9 IgtXs/colXRw9v6cZrpdBsaFjI/bQzjp6zCJPmLb1OeubaZH55LePBzLLe1835Bgglos CPmntVHYl+J4+lVLfOrLn9UzPwnSBANzPr+Uk= MIME-Version: 1.0 Received: by 10.227.138.5 with SMTP id y5mr4664579wbt.204.1283173602490; Mon, 30 Aug 2010 06:06:42 -0700 (PDT) Received: by 10.216.164.196 with HTTP; Mon, 30 Aug 2010 06:06:42 -0700 (PDT) Reply-To: gdusbabek@gmail.com In-Reply-To: References: Date: Mon, 30 Aug 2010 08:06:42 -0500 Message-ID: Subject: Re: Calls block when using Thrift API From: Gary Dusbabek To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org If you're only interested in accessing data natively, I suggest you try the "fat client." It brings up a node that participates in gossip, exposes the StorageProxy API, but does not receive a token and so does not have storage responsibilities. StorageService.instance.initClient(); in 0.7 you will want to loop until the node receives its storage definitions via gossip. Calling SS.instance.initServer() directly bypasses some of the routine startup operations. I don't recommend it unless you really know what's going on (it might work now, but it's not guaranteed to in the future). Gary. On Sun, Aug 29, 2010 at 10:28, Ruben de Laat wrote: > Just for the people looking to run Cassandra embedded and access > directly (not via Thrift/Avro). > > This works: > > StorageService.instance.initServer(); > > And then just use the StorageProxy for data access. > > I have no idea if this is the right way, but is works. > > Kind regards, > Ruben > >