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 4DB5411A88 for ; Tue, 3 Jun 2014 22:49:06 +0000 (UTC) Received: (qmail 14143 invoked by uid 500); 3 Jun 2014 22:49:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 14112 invoked by uid 500); 3 Jun 2014 22:49:03 -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 14103 invoked by uid 99); 3 Jun 2014 22:49:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 22:49:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matthew.j.allen@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 22:48:59 +0000 Received: by mail-ie0-f171.google.com with SMTP id to1so6535400ieb.16 for ; Tue, 03 Jun 2014 15:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pgSHxAGhv82Q94wdWz4us1LcSRNUC1DuNG3SX+Y1Uq8=; b=aOCXPnJeqJGilDKp+Plx/tI9/6BFZpgDUA1m3DICGYATAFjOvYZK8nKT/Ru/gX6EKj 7gvwf85f8/kC8qDLs5lOdk1nySltIL+KHRCbsAOiinBp8Ea7wO9PQHXG3NgYzUPxkgge MKdfGgcHdpumhp00FrKKSH8iHVcF//XUVwx6LlE3fozI4ICTbaeSpZdC+gusXfJz2gWE KNdOnIbRR6u/WqlZAjKgrCxZb2wFHwZr7wnJsEXeGIS3GL9q+X0JYYM9hTK1asdx0kpS 43EE+6RuTToiiWbGWjQgmEmYe7jfzL01SenzbPaovmHCMQKGVo8+w/KpEflJxcoXi+qs iAZQ== MIME-Version: 1.0 X-Received: by 10.50.43.167 with SMTP id x7mr33893795igl.36.1401835718642; Tue, 03 Jun 2014 15:48:38 -0700 (PDT) Received: by 10.50.77.166 with HTTP; Tue, 3 Jun 2014 15:48:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Jun 2014 08:48:38 +1000 Message-ID: Subject: Re: problem removing dead node from ring From: Matthew Allen To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e011602b20b133204faf650a6 X-Virus-Checked: Checked by ClamAV on apache.org --089e011602b20b133204faf650a6 Content-Type: text/plain; charset=UTF-8 Just out of curiosity, for a dead node, would it be possible to just - replace the node (no data in data/commit dirs), same IP Address, same hostname. - restore the cassandra.yaml (initial_token etc) - set auto_bootstrap:false - start it up and then run a nodetool rebuild ? Or would the Host ID value change with the new node ? Thanks Matt On Wed, Jun 4, 2014 at 4:09 AM, Robert Coli wrote: > On Tue, Jun 3, 2014 at 11:03 AM, Curious Patient > wrote: > >> In nodetool ring, if you're not using vnodes, only one token should be >>> listed with both the IP of the old node and the status Down. >>> If you are using vnodes, it's a comma delimited list in initial_token, >>> which you can get from : >>> nodetool info -T | grep Token | awk '{print $3}' | paste -s -d, >> >> >> Oh, I'm seeing a lot of tokens for each node. So that means I am using >> vnodes I guess? Really sorry I am just starting to try to really learn >> cassandra. Still new at the game, however. >> > > The default in current configs is to use 256 vnodes per physical node. > > I always recommend specifying the full list of tokens in use in the > initial_token in the conf file, as a comma delimited list in the case of > vnodes. It helps in an assortment of operational cases. > > Then, once that is done, wipe the data dirs again and use replace_address! > > =Rob > > --089e011602b20b133204faf650a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Just out of curiosity, for a dead node= , would it be possible to just

=C2=A0- replace the node (no data in= data/commit dirs), same IP Address, same hostname.
=C2=A0- restor= e the cassandra.yaml (initial_token etc)
=C2=A0- set auto_bootstrap:false
=C2=A0- start it up and the= n run a nodetool rebuild ?

Or would the Host ID value change w= ith the new node ?

Thanks

Matt


On Wed, Jun 4, 2014 at 4:09 AM, Robert Coli = <rcoli@eventbrite.com> wrote:
On Tue, Jun 3, 2014 at 11:03 AM, Curious Patient <mongomave= n@gmail.com> wrote:
In nodetool ring, if you're not using vnodes, only one token should be = listed with both the IP of the old node and the status Down.
If you are using vnodes, it's a comma delimited list in initial_token, = which you can get from :
nodetool= info -T | grep Token | awk '{print $3}' | paste -s -d,

Oh, I'm seeing a lot of tokens for each node.= So that means I am using vnodes I guess? Really sorry I am just starting t= o try to really learn cassandra. Still new at the game, however.=C2=A0

The default in current configs= is to use 256 vnodes per physical node.

I always = recommend specifying the full list of tokens in use in the initial_token in= the conf file, as a comma delimited list in the case of vnodes. It helps i= n an assortment of operational cases.

Then, once that is done, wipe the data dirs again and u= se replace_address!

=3DRob


--089e011602b20b133204faf650a6--