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 6DD51982C for ; Tue, 20 Dec 2011 21:03:30 +0000 (UTC) Received: (qmail 79366 invoked by uid 500); 20 Dec 2011 21:03:27 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 79326 invoked by uid 500); 20 Dec 2011 21:03:27 -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 79318 invoked by uid 99); 20 Dec 2011 21:03:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 21:03:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of s5alye@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2011 21:03:22 +0000 Received: by iaen33 with SMTP id n33so2584566iae.31 for ; Tue, 20 Dec 2011 13:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TFwo6X+30gnmHVOm3puxGu2VfhjOMDj0Yy7dTs4/Nns=; b=j9ysX3uhk0+5pYFpNBqLsNm0TluFnWoBnAeGjRJfhvLYhgBOTRvGXRjWAWp9dXbf5n 5ejs9HEVsfe0Jdi84bdBlDTkFPMhKExOlqlK+mYmDQCSABNyIthCnRRxExJwoe2rpEW1 5jEnZN/q/G/q+fUp0K8hiuMkSHc5joJUPZEHQ= MIME-Version: 1.0 Received: by 10.42.151.195 with SMTP id f3mr3722399icw.19.1324414981956; Tue, 20 Dec 2011 13:03:01 -0800 (PST) Received: by 10.231.113.86 with HTTP; Tue, 20 Dec 2011 13:03:01 -0800 (PST) In-Reply-To: <5168899E-D180-45C4-A819-1060434807BC@thelastpickle.com> References: <5168899E-D180-45C4-A819-1060434807BC@thelastpickle.com> Date: Tue, 20 Dec 2011 16:03:01 -0500 Message-ID: Subject: Re: setStrategy_options syntax in thrift From: A J To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am new to java. Can you specify the exact syntax for replication_factor= =3D2 ? Thanks. On Tue, Dec 20, 2011 at 1:50 PM, aaron morton wro= te: > It looks like you tried to pass the string "{replication_factor:2}" > > You need to pas a Map type , where the the key is the opt= ion > and the value is the option value. > > Cheers > > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > > On 20/12/2011, at 12:02 PM, A J wrote: > > What is the syntax of setStrategy_options in thrift. > > The following fails: > > Util.java:22: > setStrategy_options(java.util.Map) > in org.apache.cassandra.thrift.KsDef cannot be applied to > (java.lang.String) > =A0=A0=A0=A0=A0=A0=A0newKs.setStrategy_options("{replication_factor:2}"); > >