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 BF8DC9DEB for ; Wed, 11 Apr 2012 22:40:36 +0000 (UTC) Received: (qmail 92759 invoked by uid 500); 11 Apr 2012 22:40:34 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 92701 invoked by uid 500); 11 Apr 2012 22:40:34 -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 92692 invoked by uid 99); 11 Apr 2012 22:40:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 22:40:34 +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 watanabe.maki@gmail.com designates 209.85.210.43 as permitted sender) Received: from [209.85.210.43] (HELO mail-pz0-f43.google.com) (209.85.210.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 22:40:27 +0000 Received: by dadn15 with SMTP id n15so2075146dad.30 for ; Wed, 11 Apr 2012 15:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=FhD92jxLMYWZisqblbT4yNilhaBtTs7Hve7pmEwfU98=; b=Pv1dDO2KWG1GSmTsK+VzBnRVHNz7fN3Lp+4zmw4PAflVwqmqAsS2w60s0isONov7iW RFgDxsrFSoEn4xql9coHHVEP/0e5J1QdfYOvysx0inIRwTL9qnASGP/6VMR+bngqkT92 focyuRkeTPI4DK8ZsNtgE32JdTLiAqZTEK1JLhWk4MLTMFmFvk+TqWCaofsQiRLQpCxp MCutjfJ13eFXIuemJONqgPIB06iMzwy+i7XoEfV3jJ3iTE1RsfLMbM5OXPA86dZq/5Yk 5ueQfeQAACgYJIMubmxBsvc4pk+lCpaq6nwNCgdvAKbo6qttlJVlpRXpVfCOHQHMkaLm cuzQ== Received: by 10.68.239.234 with SMTP id vv10mr1393915pbc.76.1334184007498; Wed, 11 Apr 2012 15:40:07 -0700 (PDT) Received: from [183.177.162.23] (s23.TF24.vectant.ne.jp. [183.177.162.23]) by mx.google.com with ESMTPS id h10sm4033821pbe.12.2012.04.11.15.40.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 15:40:06 -0700 (PDT) Subject: Re: Initial token - newbie question (version 1.0.8) References: <016c01cd1813$2bcd6a20$83683e60$@itscape.com> <63CCA5D3F3175843B5C153AD218C2FBF03FFA3@MSEXCHM83.morningstar.com> <017c01cd1822$599c90c0$0cd5b240$@itscape.com> From: Watanabe Maki Content-Type: multipart/alternative; boundary=Apple-Mail-2F0377FA-D792-4EFF-932F-9DAA6FAD8AB6 X-Mailer: iPhone Mail (9B176) In-Reply-To: Message-Id: <247E504B-A5D9-4B06-AF01-EFFF49DA51F6@gmail.com> Date: Thu, 12 Apr 2012 07:39:59 +0900 To: "user@cassandra.apache.org" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-2F0377FA-D792-4EFF-932F-9DAA6FAD8AB6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii auto_bootstrap parameter has been removed and always enabled since 1.0. maki On 2012/04/12, at 6:10, Paolo Bernardi wrote: > I think that setting auto_bootstrap =3D true or false into cassandra.yaml i= s enough (if it isn't there already just add it, for example, after initial_= token) >=20 > Paolo >=20 > On Apr 11, 2012 10:34 PM, "Jay Parashar" wrote: > Thanks a lot Jeremiah. > Also would you be able to tell me where to configure the auto_bootstrap > parameter in version 1.0.8? >=20 > Thanks > Jay >=20 > -----Original Message----- > From: Jeremiah Jordan [mailto:JEREMIAH.JORDAN@morningstar.com] > Sent: Wednesday, April 11, 2012 3:03 PM > To: user@cassandra.apache.org > Subject: RE: Initial token - newbie question (version 1.0.8) >=20 > You have to use nodetool move to change the token after the node has start= ed > the first time. The value in the config file is only used on first startu= p. >=20 > Unless you were using RF=3D3 on your 3 node ring, you can't just start wit= h a > new token without using nodetool. You have to do move so that the data ge= ts > put in the right place. >=20 > How you would do it with out nodetool: > Dangerous, not smart, can easily shoot yourself in the foot and lose your > data way, if you were RF =3D 3: > If you used RF=3D3, then all nodes should have all data, and you can stop a= ll > nodes, remove the system keyspace data, and start up the new cluster with > the right stuff in the yaml file (blowing away system means this is like > starting a brand new cluster). Then re-create all of your keyspaces/colum= n > families and they will pick up the already existing data. >=20 > Though, if you are rf=3D3, nodetool move shouldn't be moving anything anyw= ay, > so you should just do it the right way and use nodetool. >=20 > ________________________________________ > From: Jay Parashar [jparashar@itscape.com] > Sent: Wednesday, April 11, 2012 1:44 PM > To: user@cassandra.apache.org > Subject: Initial token - newbie question (version 1.0.8) >=20 > I created a 3 node ring with the intial_token blank. Of course as expected= , > Cassandra generated its own tokens on startup (e.g. tokens X, Y and Z) The= > nodes or course were not properly balanced, so I did the following steps >=20 > 1) stopped all the 3 nodes > 2) assigned initial_tokens (A, B, C) respectively > 3) Restarted the nodes >=20 > What I find if that the node were still using the original tokens (X, Y an= d > Z). Log messages say for node 1 show "Using saved token X" >=20 > I could rebalance suing nodetool and now the nodes are using the correct > tokens. >=20 > But the question is, why were the new tokens not read from the > Cassandra.yaml file? Without using nodetool, how do I make it get the toke= n > from the yaml file? Where is it saved? >=20 > Another question: I could not find the auto_bootstrap in the yaml file as > per the documentation. Where is this param located? > Appreciate it. > Thanks in advance > Jay >=20 >=20 --Apple-Mail-2F0377FA-D792-4EFF-932F-9DAA6FAD8AB6 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=utf-8
auto_bootstrap parameter has been removed and always enabled since 1.0.

maki


On 2012/04/12, at 6:10, Paolo Bernardi <bernarpa@gmail.com> wrote:

I think that setting auto_bootstrap = true or false into cassandra.yaml is enough (if it isn't there already just add it, for example, after initial_token)

Paolo

On Apr 11, 2012 10:34 PM, "Jay Parashar" <jparashar@itscape.com> wrote:
Thanks a lot Jeremiah.
Also would you be able to tell me where to  configure the auto_bootstrap
parameter in version 1.0.8?

Thanks
Jay

-----Original Message-----
From: Jeremiah Jordan [mailto:JEREMIAH.JORDAN@morningstar.com]
Sent: Wednesday, April 11, 2012 3:03 PM
To: user@cassandra.apache.org
Subject: RE: Initial token - newbie question (version 1.0.8)

You have to use nodetool move to change the token after the node has started
the first time.  The value in the config file is only used on first startup.

Unless you were using RF=3 on your 3 node ring, you can't just start with a
new token without using nodetool.  You have to do move so that the data gets
put in the right place.

How you would do it with out nodetool:
Dangerous, not smart, can easily shoot yourself in the foot and lose your
data way, if you were RF = 3:
If you used RF=3, then all nodes should have all data, and you can stop all
nodes, remove the system keyspace data, and start up the new cluster with
the right stuff in the yaml file (blowing away system means this is like
starting a brand new cluster).  Then re-create all of your keyspaces/column
families and they will pick up the already existing data.

Though, if you are rf=3, nodetool move shouldn't be moving anything anyway,
so you should just do it the right way and use nodetool.

________________________________________
From: Jay Parashar [jparashar@itscape.com]
Sent: Wednesday, April 11, 2012 1:44 PM
To: user@cassandra.apache.org
Subject: Initial token - newbie question (version 1.0.8)

I created a 3 node ring with the intial_token blank. Of course as expected,
Cassandra generated its own tokens on startup (e.g. tokens X, Y and Z) The
nodes or course were not properly balanced, so I did the following steps

       1)  stopped all the 3 nodes
       2) assigned initial_tokens (A, B, C) respectively
       3) Restarted the nodes

What I find if that the node were still using the original tokens (X, Y and
Z). Log messages say for node 1 show "Using saved token X"

I could rebalance suing nodetool and now the nodes are using the correct
tokens.

But the question is, why were the new tokens not read from the
Cassandra.yaml file? Without using nodetool, how do I make it get the token
from the yaml file? Where is it saved?

Another question: I could not find the auto_bootstrap in the yaml file as
per the documentation. Where is this param located?
Appreciate it.
Thanks in advance
Jay


--Apple-Mail-2F0377FA-D792-4EFF-932F-9DAA6FAD8AB6--