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 086A8515D for ; Thu, 12 May 2011 08:18:37 +0000 (UTC) Received: (qmail 48337 invoked by uid 500); 12 May 2011 08:18:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 48294 invoked by uid 500); 12 May 2011 08:18:33 -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 48061 invoked by uid 99); 12 May 2011 08:18:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 08:18:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sylvain@datastax.com designates 209.85.218.44 as permitted sender) Received: from [209.85.218.44] (HELO mail-yi0-f44.google.com) (209.85.218.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 08:18:25 +0000 Received: by yic13 with SMTP id 13so554455yic.31 for ; Thu, 12 May 2011 01:18:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.92.1 with SMTP id u1mr68967ybl.384.1305188284626; Thu, 12 May 2011 01:18:04 -0700 (PDT) Received: by 10.146.86.9 with HTTP; Thu, 12 May 2011 01:18:04 -0700 (PDT) X-Originating-IP: [88.183.33.171] In-Reply-To: References: Date: Thu, 12 May 2011 10:18:04 +0200 Message-ID: Subject: Re: network topology issue From: Sylvain Lebresne To: user@cassandra.apache.org Cc: anurag.gujral@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, May 12, 2011 at 1:58 AM, Anurag Gujral wr= ote: > Hi All, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I am testing network topology strate= gy in cassandra I am using > two nodes , one node each in different data center. > Since the nodes are in different dc I assigned token 0 to both the nodes. > I added both the nodes as seeds in the cassandra.yaml and=A0 I am=A0 usin= g > properyfilesnitch as endpoint snitch where I have specified the colo > details. > > I started first node then I when I restarted second node I got an error t= hat > token "0" is already being used.Why am I getting this error. You cannot have two nodes with the same token, so you'll have to use "0" an= d "1" for instance. It's true that with NTS you have to think of each datacen= ter as a separate ring, but there is still this restriction that each token mus= t be different across the whole cluster. > > Second Question: I already have cassandra running in two different data > centers I want to add a new keyspace which uses networkTopology strategy > in the light of above errors how can I accomplish this. > > > Thanks > Anurag >