Return-Path: X-Original-To: apmail-gora-dev-archive@www.apache.org Delivered-To: apmail-gora-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6335C9A35 for ; Sat, 10 Mar 2012 01:33:40 +0000 (UTC) Received: (qmail 81292 invoked by uid 500); 10 Mar 2012 01:33:40 -0000 Delivered-To: apmail-gora-dev-archive@gora.apache.org Received: (qmail 81258 invoked by uid 500); 10 Mar 2012 01:33:40 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 81240 invoked by uid 99); 10 Mar 2012 01:33:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2012 01:33:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lewis.mcgibbney@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Mar 2012 01:33:31 +0000 Received: by yenl4 with SMTP id l4so1388638yen.25 for ; Fri, 09 Mar 2012 17:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rJMKPIptFBELjCXeD+tMfnCRTzehjjdmENg1swvANuY=; b=oil42O/9BbJqKP3xpde5YY0Uyn7WNy76+1qaMuFwYDfHJbMiK2xqxbn/aHOPbKQf69 +ytU7mvn6PyqcNkkcb2itz5sS0Bo2tYXfh7TepmK0Xp5ReFhRgKFVF8omdK4LR3VwIYy ZW6XNNrFhuTtOCh75mbLKtPYjx0m433KczbQnGr59DJUtWBW14zmO5j4+hyQF+Cp6mNY CPJZS1MmlCSpqJw8cxvqWE5GoSYIfd1WaUpRAokFeSQkLfIpKfugPNmLCjRAWM24MPXj 1o54kSrNOz/bb4uZs7E684wguRni5yQsneznioTlutla9OkEkGqxAhbereF0g/cs/m2d Geyw== MIME-Version: 1.0 Received: by 10.236.145.230 with SMTP id p66mr5182996yhj.27.1331343190601; Fri, 09 Mar 2012 17:33:10 -0800 (PST) Received: by 10.236.105.166 with HTTP; Fri, 9 Mar 2012 17:33:10 -0800 (PST) Date: Sat, 10 Mar 2012 01:33:10 +0000 Message-ID: Subject: Obtaining Datastore Mapping's during testing time. From: Lewis John Mcgibbney To: dev@gora.apache.org Content-Type: multipart/alternative; boundary=20cf3040eb32f32e6a04bad97d54 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3040eb32f32e6a04bad97d54 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I'm back looking at the Cassandra tests again and I've nearly cracked them. What I don't understand is how to obtain the mapping's from conf/gora-cassandra-mapping.xml? What I have so far is lewis@lewis-01:~/ASF/gora/gora-cassandra/src/test$ tree . =E2=94=9C=E2=94=80=E2=94=80 conf =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 cassandra.yaml =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 gora-cassandra-mapping.xml =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 gora.properties =E2=94=94=E2=94=80=E2=94=80 java =E2=94=94=E2=94=80=E2=94=80 org =E2=94=94=E2=94=80=E2=94=80 apache =E2=94=94=E2=94=80=E2=94=80 gora =E2=94=94=E2=94=80=E2=94=80 cassandra =E2=94=9C=E2=94=80=E2=94=80 GoraCassandraTestDriver.jav= a =E2=94=94=E2=94=80=E2=94=80 store =E2=94=94=E2=94=80=E2=94=80 TestCassandraStore.java Looking at the TestHbaseStore I see that we call @Override public void setUp() throws Exception { super.setUp(); conf =3D getTestDriver().getHbaseUtil().getConfiguration(); } Is this what is required to obtain the mapping configuration? This is easy using HBaseTestingUtility as it's a method in the class, unfortunately neither CassandraDaemon (Cassandra API) nor EmbeddedServerHelper (Hector API) have this method to simply call on... When I try to run my tests my Cassandra configuration is fine, but no mapping seems to be retrieved and most of the test log output complains testTruncateSchema(org.apache.gora.cassandra.store.TestCassandraStore): org.apache.avro.generic.GenericArray.add(Ljava/lang/Object;)V testTruncateSchema(org.apache.gora.cassandra.store.TestCassandraStore): InvalidRequestException(why:Keyspace does not exist.) This is because I'm not picking up the mappings from conf. I've uploaded my latest patch to Jira @ GORA-53-v8.patch ha ha ha!!! I would seriously appreciate if someone could shine some light on it for me/put me out my misery/stop me from going insane in the membrane... etc. This is driving me mad. Thanks Lewis --20cf3040eb32f32e6a04bad97d54--