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 C5153763B for ; Mon, 12 Sep 2011 20:24:40 +0000 (UTC) Received: (qmail 81406 invoked by uid 500); 12 Sep 2011 20:24:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 81382 invoked by uid 500); 12 Sep 2011 20:24:38 -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 81374 invoked by uid 99); 12 Sep 2011 20:24:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 20:24:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 20:24:32 +0000 Received: by vws10 with SMTP id 10so3910786vws.30 for ; Mon, 12 Sep 2011 13:24:11 -0700 (PDT) Received: by 10.52.69.48 with SMTP id b16mr627924vdu.514.1315859051351; Mon, 12 Sep 2011 13:24:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.108.132 with HTTP; Mon, 12 Sep 2011 13:23:31 -0700 (PDT) In-Reply-To: References: From: Kyle Gibson Date: Mon, 12 Sep 2011 16:23:31 -0400 Message-ID: Subject: Re: Replace Live Node To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable So to move data from node with token 0, the new node needs to have initial token set to 170141183460469231731687303715884105727 ? Another idea: could I move token to 1, and then use token 0 on the new node= ? On Mon, Sep 12, 2011 at 3:38 PM, Jeremy Hanna wrote: > I believe you'd need 2^127 - 1, which is 17014118346046923173168730371588= 4105727 > On Sep 12, 2011, at 2:30 PM, Kyle Gibson wrote: > >> What could you do if the initial_token is 0? >> >> On Mon, Sep 12, 2011 at 1:09 PM, Jeremy Hanna >> wrote: >>> Yeah - I would bootstrap at initial_token of -1 the current one. =A0The= n once that has bootstrapped, then decommission the old one. =A0Avoid tryin= g to use removetoken on anything before 0.8.3. =A0Use decommission if you c= an if you're dealing with a live node. >>> >>> On Sep 12, 2011, at 10:42 AM, Kyle Gibson wrote: >>> >>>> Version=3D0.7.8 >>>> >>>> I have a 3 node cluster with RF=3D3, how would I move data from a live >>>> node to a replacement node? >>>> >>>> I tried an autobootstrap + decomission, but I got this error on the li= ve node: >>>> >>>> Exception in thread "main" java.lang.IllegalStateException: >>>> replication factor (3) exceeds number of endpoints (2) >>>> >>>> And I got this error on the new node: >>>> >>>> Bootstraping to existing token 113427455640312821154458202477256070484 >>>> is not allowed (decommission/removetoken the old node first). >>>> >>>> - >>>> >>>> Do I really need to do the token - 1 manual selection for this? >>>> >>>> Thanks >>> >>> > >