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 6A3BB10A70 for ; Sat, 15 Feb 2014 17:32:05 +0000 (UTC) Received: (qmail 32861 invoked by uid 500); 15 Feb 2014 17:31:58 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 32838 invoked by uid 500); 15 Feb 2014 17:31:53 -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 32819 invoked by uid 99); 15 Feb 2014 17:31:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 17:31:52 +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 arodrime@gmail.com designates 209.85.217.169 as permitted sender) Received: from [209.85.217.169] (HELO mail-lb0-f169.google.com) (209.85.217.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 17:31:48 +0000 Received: by mail-lb0-f169.google.com with SMTP id q8so10413425lbi.28 for ; Sat, 15 Feb 2014 09:31:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=8vyOfRTCU4UIlKMV8eRprjzGPMlZLcClO8JGoQHqabI=; b=Rc0Vq5XTgQnnjGqEbEYic74Ndiv/RF0+XjP15a16j/QKoFSPYuz0cAKhx+3lA/HzsD 5Yxcburs/JpncRAg6GTtM/eb3gDqeAcE86mWKsvZagWoRPtdks6JnJJ72Ca3BIPy8E0r EjfayS48P7uqtuLxtWfwu6fMIVyTpxlOn299ukyPDAcHkoPA9THJmtL3VjGAA63Bdop2 wDZWi/MsfbXOm+kgW7sod+N68g7SLhA8TtGSugm3NP6ju7P36hhX/JzMGe4qEYEMExzR eUKdsNefw6NbU+bolhThSE2GUNg+h3FYCvJcbqZ3dgMlHGFJgj6AzPRrks2AJP/Hev2M 9OBw== X-Received: by 10.112.136.227 with SMTP id qd3mr355681lbb.55.1392485486408; Sat, 15 Feb 2014 09:31:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.74.1 with HTTP; Sat, 15 Feb 2014 09:31:06 -0800 (PST) In-Reply-To: References: From: Alain RODRIGUEZ Date: Sat, 15 Feb 2014 18:31:06 +0100 Message-ID: Subject: Re: Bootstrap failure on C* 1.2.13 To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e0115ff34c5b7f604f2754af0 X-Virus-Checked: Checked by ClamAV on apache.org --089e0115ff34c5b7f604f2754af0 Content-Type: text/plain; charset=ISO-8859-1 Hi Rob, I don't understand how setting those "initial_token" might solve this issue. Even more since we cannot set them before bootstrapping... Plus, once those tokens set, we would have to modify them after any new bootstrap / decommission. Which would also imply to run a rolling restart for the new configuration (cassandra.yaml) to be taken into account. This is quite a heavy process to perform a "NOOP"... What did I miss ? Thanks for getting involved and trying to help anyway :). Alain 2014-02-15 1:13 GMT+01:00 Robert Coli : > On Fri, Feb 14, 2014 at 10:08 AM, Paulo Ricardo Motta Gomes < > paulo.motta@chaordicsystems.com> wrote: > >> But in our case, our cluster was not using VNodes, so this workaround >> will probably not work with VNodes, since you cannot specify the 256 tokens >> from the old node. >> > > Sure you can, in a comma delimited list. I plan to write a short blog post > about this, but... > > I recommend that anyone using Cassandra, vnodes or not, always explicitly > populate their initial_token line in cassandra.yaml. There are a number of > cases where you will lose if you do not do so, and AFAICT no cases where > you lose by doing so. > > If one is using vnodes and wants to do this, the process goes like : > > 1) set num_tokens to the desired number of vnodes > 2) start node/bootstrap > 3) use a one liner like jeffj's : > " > nodetool info -T | grep ^Token | awk '{ print $3 }' | tr \\n , | sed -e > 's/,$/\n/' > " > to get a comma delimited list of the vnode tokens > 4) insert this comma delimited list in initial_token, and comment out > num_tokens (though it is a NOOP) > > =Rob > --089e0115ff34c5b7f604f2754af0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Rob,

I don't understand how sett= ing those "initial_token" might solve this issue. Even more since= we cannot set them before bootstrapping...

Plus, = once those tokens set, we would have to modify them after any new bootstrap= / decommission. Which would also imply to run a rolling restart for the ne= w configuration (cassandra.yaml) =A0to be taken into account. This is quite= a heavy process to perform a "NOOP"...

What did I miss ?

Thanks for g= etting involved and trying to help anyway :).

Alai= n


2014-02-15 1:13 GMT+01:00 Robert Coli <rcoli@eventbrite.com>:
On Fri, Feb 14, 2014 at 10:08 AM, Paulo Ricardo Motta Gomes <paulo.motta@chaordicsystems.com> wrote:
But in our case, our cluster was not= using VNodes, so this workaround will probably not work with VNodes, since= you cannot specify the 256 tokens from the old node.

Sure you can, in a comma delim= ited list. I plan to write a short blog post about this, but...
<= br>
I recommend that anyone using Cassandra, vnodes or not, alway= s explicitly populate their initial_token line in cassandra.yaml. There are= a number of cases where you will lose if you do not do so, and AFAICT no c= ases where you lose by doing so.

If one is using vnodes and wants to do this, the proces= s goes like :

1) set num_tokens to the desired num= ber of vnodes
2) start node/bootstrap
3) use a one line= r like jeffj's :
"
nodetool info -T | grep ^Token | awk '{ print $3 = }' | tr \\n , | sed -e 's/,$/\n/'
"
to get a comma delimited list of the vnode tokens
4) insert thi= s comma delimited list in initial_token, and comment out num_tokens (though= it is a NOOP)

=3DRob

--089e0115ff34c5b7f604f2754af0--