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 BBB1FC47B for ; Fri, 13 Apr 2012 14:50:23 +0000 (UTC) Received: (qmail 79482 invoked by uid 500); 13 Apr 2012 14:50:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 79454 invoked by uid 500); 13 Apr 2012 14:50:21 -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 79443 invoked by uid 99); 13 Apr 2012 14:50:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 14:50:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of SRS0=sDZst1=CT=itscape.com=jparashar@yourhostingaccount.com designates 65.254.253.104 as permitted sender) Received: from [65.254.253.104] (HELO mailout13.yourhostingaccount.com) (65.254.253.104) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 14:50:14 +0000 Received: from mailscan01.yourhostingaccount.com ([10.1.15.1] helo=mailscan01.yourhostingaccount.com) by mailout13.yourhostingaccount.com with esmtp (Exim) id 1SIhou-000277-LO for user@cassandra.apache.org; Fri, 13 Apr 2012 10:49:53 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by mailscan01.yourhostingaccount.com with esmtp (Exim) id 1SIhou-00036s-8p for user@cassandra.apache.org; Fri, 13 Apr 2012 10:49:52 -0400 Received: from authsmtp12.yourhostingaccount.com ([10.1.18.12]) by impout01.yourhostingaccount.com with NO UCE id xSps1i0010FdXoS01Spsmr; Fri, 13 Apr 2012 10:49:52 -0400 X-Authority-Analysis: v=2.0 cv=aoEw+FlV c=1 sm=1 a=IHjmvB9fm9H2seUPZRMazg==:17 a=tFIjC66DKT8A:10 a=u7MbxWOkQIYA:10 a=rcBlM8BCN2sA:10 a=pGLkceISAAAA:8 a=mV9VRH-2AAAA:8 a=Wb4pBuW6AAAA:8 a=7BESNmvEAAAA:8 a=LnCbjsBl2gjMDFGiZB0A:9 a=NmGqI_Mye2NcI3qWkacA:7 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=IE0W7Xxih2MA:10 a=THlyP2A9p6EA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=eDex0H-4bo3V9I7ontMA:9 a=hTUGizBAxzvRETl7H_0A:7 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=t1ijpx9AV50gTBtUFlM2vg==:117 X-EN-OrigOutIP: 10.1.18.12 X-EN-IMPSID: xSps1i0010FdXoS01Spsmr Received: from h174.191.30.71.dynamic.ip.windstream.net ([71.30.191.174] helo=PARASHAR) by authsmtp12.yourhostingaccount.com with esmtpa (Exim) id 1SIhop-00083R-KK for user@cassandra.apache.org; Fri, 13 Apr 2012 10:49:51 -0400 From: "Jay Parashar" To: References: <016c01cd1813$2bcd6a20$83683e60$@itscape.com> <63CCA5D3F3175843B5C153AD218C2FBF03FFA3@MSEXCHM83.morningstar.com> <017c01cd1822$599c90c0$0cd5b240$@itscape.com> <247E504B-A5D9-4B06-AF01-EFFF49DA51F6@gmail.com> In-Reply-To: <247E504B-A5D9-4B06-AF01-EFFF49DA51F6@gmail.com> Subject: RE: Initial token - newbie question (version 1.0.8) Date: Fri, 13 Apr 2012 09:49:45 -0500 Message-ID: <000101cd1984$abb6bdf0$032439d0$@itscape.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0002_01CD195A.C2E4AD90" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJG3MpslLAQ3NhX+93JL/xycLFSQwKkJjv/AY7Fs+gBgbatNgFdLLuQlWzA9CA= Content-Language: en-us X-EN-UserInfo: 256e5a76a9505ce88d35f58f44ec01f8:b4c2359d1afaa23d8b8a78814349bba7 X-EN-AuthUser: jparashar@itscape.com Sender: "Jay Parashar" X-EN-OrigIP: 71.30.191.174 X-EN-OrigHost: h174.191.30.71.dynamic.ip.windstream.net X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. ------=_NextPart_000_0002_01CD195A.C2E4AD90 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Thanks everybody! Appreciate it. =20 From: Watanabe Maki [mailto:watanabe.maki@gmail.com]=20 Sent: Wednesday, April 11, 2012 5:40 PM To: user@cassandra.apache.org Subject: Re: Initial token - newbie question (version 1.0.8) =20 auto_bootstrap parameter has been removed and always enabled since 1.0. maki =20 On 2012/04/12, at 6:10, Paolo Bernardi wrote: I think that setting auto_bootstrap =3D 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" 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=3D3 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 =3D 3: If you used RF=3D3, 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=3D3, 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 ------=_NextPart_000_0002_01CD195A.C2E4AD90 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Thanks everybody! Appreciate it.

 

From:= = Watanabe Maki [mailto:watanabe.maki@gmail.com]
Sent: = Wednesday, April 11, 2012 5:40 PM
To: = user@cassandra.apache.org
Subject: Re: Initial token - newbie = question (version 1.0.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 =3D 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@morningst= ar.com]
Sent: Wednesday, April 11, 2012 3:03 PM
To: user@cassandra.apache.orgSubject: 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=3D3 = 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 =3D 3:
If you used RF=3D3, = 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=3D3, 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.orgSubject: 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

------=_NextPart_000_0002_01CD195A.C2E4AD90--