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 DCB929D2D for ; Wed, 11 Apr 2012 20:34:08 +0000 (UTC) Received: (qmail 38431 invoked by uid 500); 11 Apr 2012 20:34:06 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 38411 invoked by uid 500); 11 Apr 2012 20:34:06 -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 38403 invoked by uid 99); 11 Apr 2012 20:34:06 -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 20:34:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of SRS0=yKQj+4=CR=itscape.com=jparashar@yourhostingaccount.com designates 65.254.253.146 as permitted sender) Received: from [65.254.253.146] (HELO mailout18.yourhostingaccount.com) (65.254.253.146) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2012 20:34:00 +0000 Received: from mailscan03.yourhostingaccount.com ([10.1.15.3] helo=mailscan03.yourhostingaccount.com) by mailout18.yourhostingaccount.com with esmtp (Exim) id 1SI4EU-0000kU-HR for user@cassandra.apache.org; Wed, 11 Apr 2012 16:33:38 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by mailscan03.yourhostingaccount.com with esmtp (Exim) id 1SI4EU-0001aJ-B8 for user@cassandra.apache.org; Wed, 11 Apr 2012 16:33:38 -0400 Received: from authsmtp01.yourhostingaccount.com ([10.1.18.1]) by impout01.yourhostingaccount.com with NO UCE id wkZe1i00101P85W01kZeRN; Wed, 11 Apr 2012 16:33:38 -0400 X-Authority-Analysis: v=2.0 cv=aoEw+FlV c=1 sm=1 a=dJZefzg+59UwCfleoxVXjw==:17 a=tFIjC66DKT8A:10 a=u7MbxWOkQIYA:10 a=rcBlM8BCN2sA:10 a=kj9zAlcOel0A:10 a=7BESNmvEAAAA:8 a=mV9VRH-2AAAA:8 a=Wb4pBuW6AAAA:8 a=AEp9ubDsewY2NlpfecYA:9 a=OIMFrWPnHkWj2tuw4YoA:7 a=CjuIK1q_8ugA:10 a=THlyP2A9p6EA:10 a=IE0W7Xxih2MA:10 a=ilymawf/5WNU8sTmGLp1gQ==:117 X-EN-OrigOutIP: 10.1.18.1 X-EN-IMPSID: wkZe1i00101P85W01kZeRN Received: from [12.183.220.195] (helo=PARASHAR) by authsmtp01.yourhostingaccount.com with esmtpa (Exim) id 1SI4EQ-0006Uh-Kg for user@cassandra.apache.org; Wed, 11 Apr 2012 16:33:37 -0400 From: "Jay Parashar" To: References: <016c01cd1813$2bcd6a20$83683e60$@itscape.com> <63CCA5D3F3175843B5C153AD218C2FBF03FFA3@MSEXCHM83.morningstar.com> In-Reply-To: <63CCA5D3F3175843B5C153AD218C2FBF03FFA3@MSEXCHM83.morningstar.com> Subject: RE: Initial token - newbie question (version 1.0.8) Date: Wed, 11 Apr 2012 15:33:25 -0500 Message-ID: <017c01cd1822$599c90c0$0cd5b240$@itscape.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJG3MpslLAQ3NhX+93JL/xycLFSQwKkJjv/lY1ph7A= Content-Language: en-us X-EN-UserInfo: 256e5a76a9505ce88d35f58f44ec01f8:b4c2359d1afaa23d8b8a78814349bba7 X-EN-AuthUser: jparashar@itscape.com Sender: "Jay Parashar" X-EN-OrigIP: 12.183.220.195 X-EN-OrigHost: unknown X-Virus-Checked: Checked by ClamAV on apache.org 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