From user-return-14192-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Thu Mar 03 20:42:04 2011 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 57615 invoked from network); 3 Mar 2011 20:42:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 20:42:04 -0000 Received: (qmail 11429 invoked by uid 500); 3 Mar 2011 20:42:02 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 11401 invoked by uid 500); 3 Mar 2011 20:42:02 -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 11393 invoked by uid 99); 3 Mar 2011 20:42:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 20:42:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.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 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; Thu, 03 Mar 2011 20:41:56 +0000 Received: by vxg33 with SMTP id 33so1587714vxg.31 for ; Thu, 03 Mar 2011 12:41:35 -0800 (PST) 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; bh=oj1dR38R+sQWmBW0/sXvZYqkSyBi8k8CmcE2Mal4XYs=; b=WXlXocF4LubeD5ZOoenv6HJmYY36P807ST3VTBEnofoYadsiSd55T7ybblHyLrEc7O fzKiAQAznZ8Ng9O5pUOd7Is88V8yio86hIhy6OS5o7qfrIrNnSC6+x6nbCy6SvsMyxCe H0q4DrVN/HxRjGG6ooK+xePjRP9Lzz8Z5gJAQ= 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; b=KX+VPCh/Ojun3nzoSoz/GNO5f+KMo+Y3ETopDRaqvVGtiU6CG40GLSguRdS1z6mfMC ZbfQXwjmEP8qCn/pW+4UkIbf74mZuo5Pg5E/mmiRbUuVxfwVJktxbR5FzhFfBk9ndEiG 9/0K68zWL6XqEkGKLoyp44eOjQfzj9emiXqvU= Received: by 10.52.95.104 with SMTP id dj8mr1861586vdb.307.1299184895077; Thu, 03 Mar 2011 12:41:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.161.135 with HTTP; Thu, 3 Mar 2011 12:41:14 -0800 (PST) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 3 Mar 2011 14:41:14 -0600 Message-ID: Subject: Re: Network Topology Strategy error To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org you need to specify per-DC replicas w/ NTS in strategy_options, instead of using replication_factor On Thu, Mar 3, 2011 at 1:52 PM, A J wrote: > using latest cassandra (0.7.2). I want to try out Network Topology Strategy. > > Following is related setting in cassandra.yaml > endpoint_snitch: org.apache.cassandra.locator.PropertyFileSnitch > > I have four nodes. Set them accordingly in ./conf/cassandra-topology.properties: > 10.252.219.224=DC2:RAC1 > 10.252.10.64=DC2:RAC1 > 10.252.11.32=DC1:RAC1 > 10.220.103.98=DC1:RAC1 > > > I create a ks as: > create keyspace ks1 with replication_factor=1 and > placement_strategy='org.apache.cassandra.locator.NetworkTopologyStrategy'; > > When I try to insert, get the following error: > set cf1['A']['c1']='xyz'; > ERROR 19:21:58,081 Internal error processing insert > java.lang.AssertionError: invalid response count 1 for replication factor 0 > > > Please suggest what could be going on ? cassandra-topology.properties > has two DCs. Why am I still getting the error ? > > Thanks for any suggestions. > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com