Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 85430 invoked from network); 7 Sep 2010 19:10:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 19:10:52 -0000 Received: (qmail 48778 invoked by uid 500); 7 Sep 2010 19:10:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 48733 invoked by uid 500); 7 Sep 2010 19:10:50 -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 48725 invoked by uid 99); 7 Sep 2010 19:10:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 19:10:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cheetah100@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 19:10:43 +0000 Received: by wwj40 with SMTP id 40so50844wwj.25 for ; Tue, 07 Sep 2010 12:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=8sD5m7PqNLToXKurdQnsxMpKDVoxLb3XahJVcqdHd8c=; b=UlQro454yffCXLce7vEKgtFVxxyVLmOG7MQbBbe0R9IchstMK6jwDgMpS/MYSMLM9Z 3QlpN75wEE5wx96h9whHSObRRcBnzoEvyRezU4l64fvDo2gzIIxYP3jtgEXDiORlL4LF vFgz4NLnfmndO6h8CQU59uBv5AxMGxzSMA+8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GF53TchcclO8cqiDQBU0P53lzJ5yDksa7cdlMR5pZCNyixqoMKAmCeO0eYcQV5JwUK r0C/d8aiEzGTnhIb+bFnqvKTF385tJ2mAmCeJq4HmWi2IRFXjxOzKy/GuGxjGYFr//Wm mQUfUV6Z5B1+UGIM9P/8U+e5qtYlnt0WNlQUk= MIME-Version: 1.0 Received: by 10.216.11.129 with SMTP id 1mr30415wex.90.1283885898629; Tue, 07 Sep 2010 11:58:18 -0700 (PDT) Received: by 10.216.47.207 with HTTP; Tue, 7 Sep 2010 11:58:18 -0700 (PDT) In-Reply-To: References: <6B89AB34-C11D-4242-BC62-9AF983FFC995@unige.ch> Date: Wed, 8 Sep 2010 06:58:18 +1200 Message-ID: Subject: Re: connect to cassandra using java From: Peter Harrison To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 8, 2010 at 3:20 AM, Asif Jan wrote: > > > Hi > I need to use the low level java API in order to test bulk ingestion to > cassandra. I have already looked at the code in contrib/bmt_example and > contrib/client_only. > When I try and run the following code, I get following exception ; using > cassandra-cli I am able to see the "Keyspace1' and column family 'Standard1' > . On the server you need to load the schema from the yaml. To do this you will need to use jconsole to connect and run the schema load method. You only need to do this once on a single node. I have written some code to load and drop keyspaces and column families for hector; but I'm not quite happy with it yet. This will enable you to do everything programatically.