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 D64D72BBF for ; Wed, 27 Apr 2011 21:28:16 +0000 (UTC) Received: (qmail 16331 invoked by uid 500); 27 Apr 2011 21:28:14 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 16305 invoked by uid 500); 27 Apr 2011 21:28:14 -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 16297 invoked by uid 99); 27 Apr 2011 21:28:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 21:28:14 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.220.172 as permitted sender) Received: from [209.85.220.172] (HELO mail-vx0-f172.google.com) (209.85.220.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 21:28:10 +0000 Received: by vxg33 with SMTP id 33so1904118vxg.31 for ; Wed, 27 Apr 2011 14:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=b4E+eEJqpoCEYXzhu7Q4aewTJEHU1z4X3up1UDcluRA=; b=L26TBhhE3xBymZxgAedSzOLfLSXH4JTN9Jz2JyHnTAIIM3x23SYIcVOvcmu0EY/TAV AyqZqaXZpp1g0haCvRkDYNXLGfTS5kYKqrW3wNbyP6hzjyekVhIj69VUtBefd085zLtn ft3aTmGxffmBQGH/kr5KSZPcPwM9zyLgIxQzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=qcZ/oEVHDjxnK9OaM1fnJFurG9YYRLIPq1I5tdch4oQybpvtsylw9T5e3LuS4oShni xsp9QRt6ILIFvsLS6I11cHvNTyNbQ9OeoP4ggURXmBN4c5V1YKQ0gm17EHL42Btl3avm SlI4MAimYP8+I1VMzDH3GA78UpUjm1Sh4WYoU= Received: by 10.52.73.33 with SMTP id i1mr362620vdv.133.1303939668736; Wed, 27 Apr 2011 14:27:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.184.65 with HTTP; Wed, 27 Apr 2011 14:27:27 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Wed, 27 Apr 2011 16:27:27 -0500 Message-ID: Subject: Re: JDBC Driver issue in 0.8beta1 To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What's the stacktrace? On Wed, Apr 27, 2011 at 9:45 AM, David McNelis wrote: > I have a feeling that I'm likely doing something dumb. =A0I have =A0the > following code compiling without any issues: > String url =3D null; > try { > =A0=A0 =A0 Class.forName("org.apache.cassandra.cql.jdbc.CassandraDriver")= ; > =A0=A0 =A0 =A0url =3D "jdbc:cassandra:username/password@localhost:9160/ke= yspace"; > =A0=A0 =A0 =A0Connection conn =3D =A0DriverManager.getConnection(url); > } catch (ClassNotFoundException e1) { > =A0=A0=A0e1.printStackTrace(); > } > However, at runtime I get a DriverResolverException at CassandraConnectio= n, > line 103, that "Required Field 'replication_factor' was not found. =A0I t= ried > adding a Properties object with a key of "replication_factor" and a value= of > 0, but that didn't seem to make any difference whatsoever. =A0When I look= ed at > the test classes there isn't anything showing up that looks like it is > explicitly setting a rep-factor. =A0Am I missing something in my attempt = to > create the connection? =A0Or am do I likely have something mis-configured= in > my cassandra instance (which is stock, outside of having data upgraded fr= om > 0.7.2. > -- > David McNelis > Lead Software Engineer > Agentis Energy > www.agentisenergy.com > o: 630.359.6395 > c: 219.384.5143 > A Smart Grid technology company focused on helping consumers of energy > control an often under-managed resource. > > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com